forked from loafle/openapi-generator-original
Add nullability annotations to Java generated clients (#19617)
* issue-1960: Add nullability annotations to Java generated clients Motivations: Have generated clients properly annotated for nullability to be able to check code using them with tools like NullAway Modifications: * Add nullable_var_annotations template to handle nullability annotation on vars * Add pojo templates to use the nullability template * Adapt tests * issue-1960: Add nullability annotations to Java generated clients Modifications: * Run export_docs_generator.sh script to update samples
This commit is contained in:
parent
8f7d9f7467
commit
65b1859161
@ -72,6 +72,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{/isContainer}}
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#isContainer}}
|
||||
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||
{{/isContainer}}
|
||||
@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#vars}}
|
||||
|
||||
{{^isReadOnly}}
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) {
|
||||
{{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
{{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
return this;
|
||||
@ -189,17 +190,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{#required}}
|
||||
{{#isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/isNullable}}
|
||||
{{^isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nonnull
|
||||
{{/isNullable}}
|
||||
{{/required}}
|
||||
{{^required}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/required}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#jsonb}}
|
||||
@JsonbProperty("{{baseName}}")
|
||||
{{/jsonb}}
|
||||
@ -246,7 +237,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
|
||||
{{^isReadOnly}}
|
||||
{{#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}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
{{/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-is-jackson-optional-nullable}}
|
||||
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
|
@ -81,6 +81,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{>nullable_var_annotations}}
|
||||
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
|
||||
@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>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));
|
||||
@ -197,17 +198,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{#required}}
|
||||
{{#isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/isNullable}}
|
||||
{{^isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nonnull
|
||||
{{/isNullable}}
|
||||
{{/required}}
|
||||
{{^required}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/required}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#useBeanValidation}}
|
||||
{{>beanValidation}}
|
||||
{{/useBeanValidation}}
|
||||
@ -257,7 +248,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
@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}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
{{/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));
|
||||
|
@ -81,6 +81,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{>nullable_var_annotations}}
|
||||
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
|
||||
@ -113,7 +114,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>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));
|
||||
@ -197,17 +198,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{#required}}
|
||||
{{#isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/isNullable}}
|
||||
{{^isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nonnull
|
||||
{{/isNullable}}
|
||||
{{/required}}
|
||||
{{^required}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/required}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#useBeanValidation}}
|
||||
{{>beanValidation}}
|
||||
{{/useBeanValidation}}
|
||||
@ -257,7 +248,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
@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}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
{{/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));
|
||||
|
@ -75,6 +75,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{/isContainer}}
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
{{^vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
{{>nullable_var_annotations}}
|
||||
private {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
|
||||
@ -104,7 +105,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
));
|
||||
|
||||
{{/vendorExtensions.x-enum-as-string}}
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>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));
|
||||
@ -188,17 +189,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{#required}}
|
||||
{{#isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/isNullable}}
|
||||
{{^isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nonnull
|
||||
{{/isNullable}}
|
||||
{{/required}}
|
||||
{{^required}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/required}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#useBeanValidation}}
|
||||
{{>beanValidation}}
|
||||
{{/useBeanValidation}}
|
||||
@ -244,7 +235,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
|
||||
{{^isReadOnly}}
|
||||
{{#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}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
{{/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));
|
||||
@ -266,7 +257,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#allVars}}
|
||||
{{#isOverridden}}
|
||||
@Override
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) {
|
||||
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}));
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
|
@ -70,6 +70,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#vendorExtensions.x-field-extra-annotation}}
|
||||
{{{vendorExtensions.x-field-extra-annotation}}}
|
||||
{{/vendorExtensions.x-field-extra-annotation}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#isDiscriminator}}protected{{/isDiscriminator}}{{^isDiscriminator}}private{{/isDiscriminator}} {{{datatypeWithEnum}}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||
|
||||
{{/vars}}
|
||||
@ -106,7 +107,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) {
|
||||
this.{{name}} = {{name}};
|
||||
return this;
|
||||
}
|
||||
@ -153,17 +154,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{#required}}
|
||||
{{#isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/isNullable}}
|
||||
{{^isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nonnull
|
||||
{{/isNullable}}
|
||||
{{/required}}
|
||||
{{^required}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/required}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#useBeanValidation}}
|
||||
{{>beanValidation}}
|
||||
{{/useBeanValidation}}
|
||||
@ -183,7 +174,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{^isReadOnly}}
|
||||
{{#vendorExtensions.x-setter-extra-annotation}} {{{vendorExtensions.x-setter-extra-annotation}}}
|
||||
{{/vendorExtensions.x-setter-extra-annotation}}{{#deprecated}} @Deprecated
|
||||
{{/deprecated}} public void {{setter}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
{{/deprecated}} public void {{setter}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) {
|
||||
this.{{name}} = {{name}};
|
||||
}
|
||||
{{/isReadOnly}}
|
||||
|
1
modules/openapi-generator/src/main/resources/Java/nullable_var_annotations.mustache
vendored
Normal file
1
modules/openapi-generator/src/main/resources/Java/nullable_var_annotations.mustache
vendored
Normal file
@ -0,0 +1 @@
|
||||
{{#required}}{{#isNullable}}@{{javaxPackage}}.annotation.Nullable{{/isNullable}}{{^isNullable}}@{{javaxPackage}}.annotation.Nonnull{{/isNullable}}{{/required}}{{^required}}@{{javaxPackage}}.annotation.Nullable{{/required}}
|
@ -65,6 +65,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#gson}}
|
||||
@SerializedName(SERIALIZED_NAME_{{nameInSnakeCase}})
|
||||
{{/gson}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#vendorExtensions.x-field-extra-annotation}}
|
||||
{{{vendorExtensions.x-field-extra-annotation}}}
|
||||
{{/vendorExtensions.x-field-extra-annotation}}
|
||||
@ -134,7 +135,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
|
||||
{{#vars}}
|
||||
{{^isReadOnly}}
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) {
|
||||
{{#vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
{{^vendorExtensions.x-is-jackson-optional-nullable}}this.{{name}} = {{name}};{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
return this;
|
||||
@ -210,17 +211,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#deprecated}}
|
||||
@Deprecated
|
||||
{{/deprecated}}
|
||||
{{#required}}
|
||||
{{#isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/isNullable}}
|
||||
{{^isNullable}}
|
||||
@{{javaxPackage}}.annotation.Nonnull
|
||||
{{/isNullable}}
|
||||
{{/required}}
|
||||
{{^required}}
|
||||
@{{javaxPackage}}.annotation.Nullable
|
||||
{{/required}}
|
||||
{{>nullable_var_annotations}}
|
||||
{{#jsonb}}
|
||||
@JsonbProperty("{{baseName}}")
|
||||
{{/jsonb}}
|
||||
@ -270,7 +261,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
|
||||
{{^isReadOnly}}
|
||||
{{#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}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
{{/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-is-jackson-optional-nullable}}
|
||||
this.{{name}} = JsonNullable.<{{{datatypeWithEnum}}}>of({{name}});
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
@ -285,7 +276,7 @@ public class {{classname}} {{#parent}}extends {{{.}}} {{/parent}}{{#vendorExtens
|
||||
{{#readWriteVars}}
|
||||
{{#isOverridden}}
|
||||
@Override
|
||||
public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) {
|
||||
public {{classname}} {{name}}({{>nullable_var_annotations}} {{{datatypeWithEnum}}} {{name}}) {
|
||||
{{#vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
this.{{setter}}(JsonNullable.<{{{datatypeWithEnum}}}>of({{name}}));
|
||||
{{/vendorExtensions.x-is-jackson-optional-nullable}}
|
||||
|
@ -1954,9 +1954,9 @@ public class JavaClientCodegenTest {
|
||||
new DefaultGenerator().opts(new ClientOptInput().openAPI(openAPI).config(codegen)).generate();
|
||||
|
||||
assertThat(output.resolve("src/main/java/org/openapitools/client/model/Cat.java")).content()
|
||||
.contains(" @Override\n" + " public Cat petType(String petType) {");
|
||||
.contains(" @Override\n" + " public Cat petType(@javax.annotation.Nonnull String petType) {");
|
||||
assertThat(output.resolve("src/main/java/org/openapitools/client/model/Pet.java")).content()
|
||||
.contains(" }\n" + "\n" + " public Pet petType(String petType) {\n");
|
||||
.contains(" }\n" + "\n" + " public Pet petType(@javax.annotation.Nonnull String petType) {\n");
|
||||
}
|
||||
|
||||
@Test public void testForJavaNativeClientOverrideSetter() {
|
||||
@ -1971,9 +1971,9 @@ public class JavaClientCodegenTest {
|
||||
new DefaultGenerator().opts(new ClientOptInput().openAPI(openAPI).config(codegen)).generate();
|
||||
|
||||
assertThat(output.resolve("src/main/java/org/openapitools/client/model/Cat.java")).content()
|
||||
.contains(" @Override\n" + " public Cat petType(String petType) {");
|
||||
.contains(" @Override\n" + " public Cat petType(@javax.annotation.Nonnull String petType) {");
|
||||
assertThat(output.resolve("src/main/java/org/openapitools/client/model/Pet.java")).content()
|
||||
.contains(" }\n" + "\n" + " public Pet petType(String petType) {\n");
|
||||
.contains(" }\n" + "\n" + " public Pet petType(@javax.annotation.Nonnull String petType) {\n");
|
||||
}
|
||||
|
||||
@Test public void testDeprecatedProperty() {
|
||||
@ -1989,9 +1989,9 @@ public class JavaClientCodegenTest {
|
||||
validateJavaSourceFiles(files);
|
||||
TestUtils.assertFileContains(
|
||||
output.resolve("src/main/java/org/openapitools/client/model/BigDog.java"),
|
||||
"@Deprecated\n public BigDog declawed(Boolean declawed) {", // deprecated builder method
|
||||
"@Deprecated\n public BigDog declawed(@javax.annotation.Nullable Boolean declawed) {", // deprecated builder method
|
||||
"@Deprecated\n @javax.annotation.Nullable\n\n public Boolean getDeclawed() {", // deprecated getter
|
||||
"@Deprecated\n" + " public void setDeclawed(Boolean declawed) {" // deprecated setter
|
||||
"@Deprecated\n" + " public void setDeclawed(@javax.annotation.Nullable Boolean declawed) {" // deprecated setter
|
||||
);
|
||||
}
|
||||
|
||||
@ -2008,13 +2008,13 @@ public class JavaClientCodegenTest {
|
||||
validateJavaSourceFiles(files);
|
||||
TestUtils.assertFileContains(
|
||||
output.resolve("src/main/java/org/openapitools/client/model/BigDog.java"),
|
||||
"@Deprecated\n public BigDog declawed(Boolean declawed) {", // deprecated builder method
|
||||
"@Deprecated\n public BigDog declawed(@jakarta.annotation.Nullable Boolean declawed) {", // deprecated builder method
|
||||
"@Deprecated\n @jakarta.annotation.Nullable\n @JsonProperty(JSON_PROPERTY_DECLAWED)\n"
|
||||
+ " @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n"
|
||||
+ " public Boolean getDeclawed() {", // deprecated getter
|
||||
"@Deprecated\n @JsonProperty(JSON_PROPERTY_DECLAWED)\n"
|
||||
+ " @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n"
|
||||
+ " public void setDeclawed(Boolean declawed) {" // deprecated setter
|
||||
+ " public void setDeclawed(@jakarta.annotation.Nullable Boolean declawed) {" // deprecated setter
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -36,15 +36,17 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public Bird() {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
public Bird size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -65,11 +67,11 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public Bird color(String color) {
|
||||
public Bird color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -90,7 +92,7 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -36,15 +36,17 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -65,11 +67,11 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -90,7 +92,7 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -42,19 +42,22 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_TEXT = "text";
|
||||
@javax.annotation.Nullable
|
||||
private String text;
|
||||
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@javax.annotation.Nullable
|
||||
private OffsetDateTime date;
|
||||
|
||||
public DataQuery() {
|
||||
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
|
||||
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
@ -75,11 +78,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SUFFIX)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSuffix(String suffix) {
|
||||
public void setSuffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
public DataQuery text(String text) {
|
||||
public DataQuery text(@javax.annotation.Nullable String text) {
|
||||
|
||||
this.text = text;
|
||||
return this;
|
||||
@ -100,11 +103,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TEXT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setText(String text) {
|
||||
public void setText(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public DataQuery date(OffsetDateTime date) {
|
||||
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
|
||||
this.date = date;
|
||||
return this;
|
||||
@ -125,18 +128,18 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDate(OffsetDateTime date) {
|
||||
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery id(Long id) {
|
||||
public DataQuery id(@javax.annotation.Nullable Long id) {
|
||||
this.setId(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
|
||||
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.setOutcomes(outcomes);
|
||||
return this;
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ import java.util.StringJoiner;
|
||||
@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<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
|
||||
|
||||
/**
|
||||
@ -90,30 +91,37 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<ArrayStringEnumDefaultEnum> 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<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
|
||||
@javax.annotation.Nullable
|
||||
private List<String> arrayString = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
|
||||
|
||||
public DefaultValue() {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
@ -142,11 +150,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
@ -175,11 +183,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
@ -208,11 +216,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
@ -241,11 +249,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
@ -274,11 +282,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
|
||||
return this;
|
||||
@ -319,11 +327,11 @@ public class DefaultValue {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
|
||||
return this;
|
||||
@ -364,11 +372,11 @@ public class DefaultValue {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
}
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
|
||||
return this;
|
||||
@ -397,7 +405,7 @@ public class DefaultValue {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
}
|
||||
|
||||
|
@ -38,18 +38,21 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@javax.annotation.Nullable
|
||||
private Float _float;
|
||||
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@javax.annotation.Nullable
|
||||
private Double _double;
|
||||
|
||||
public NumberPropertiesOnly() {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
|
||||
|
||||
this.number = number;
|
||||
return this;
|
||||
@ -70,11 +73,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setNumber(BigDecimal number) {
|
||||
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
|
||||
|
||||
this._float = _float;
|
||||
return this;
|
||||
@ -95,11 +98,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setFloat(Float _float) {
|
||||
public void setFloat(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
|
||||
|
||||
this._double = _double;
|
||||
return this;
|
||||
@ -122,7 +125,7 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDouble(Double _double) {
|
||||
public void setDouble(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
|
@ -45,18 +45,23 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nonnull
|
||||
private String name;
|
||||
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@javax.annotation.Nullable
|
||||
private Category category;
|
||||
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@javax.annotation.Nonnull
|
||||
private List<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -97,12 +102,13 @@ public class Pet {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -123,11 +129,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@javax.annotation.Nonnull String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -148,11 +154,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
|
||||
this.category = category;
|
||||
return this;
|
||||
@ -173,11 +179,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
@ -206,11 +212,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
|
||||
this.tags = tags;
|
||||
return this;
|
||||
@ -239,11 +245,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@javax.annotation.Nullable StatusEnum status) {
|
||||
|
||||
this.status = status;
|
||||
return this;
|
||||
@ -264,7 +270,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,7 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
/**
|
||||
@ -79,12 +80,13 @@ public class Query {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
|
||||
@javax.annotation.Nullable
|
||||
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
|
||||
|
||||
public Query() {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
public Query id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -105,11 +107,11 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
@ -138,7 +140,7 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTCOMES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
|
@ -36,15 +36,17 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -65,11 +67,11 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -90,7 +92,7 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -36,12 +36,13 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public TestFormObjectMultipartRequestMarker() {
|
||||
}
|
||||
|
||||
public TestFormObjectMultipartRequestMarker name(String name) {
|
||||
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -62,7 +63,7 @@ public class TestFormObjectMultipartRequestMarker {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -39,21 +39,25 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -74,11 +78,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -99,11 +103,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -124,11 +128,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -149,7 +153,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -39,12 +39,13 @@ import java.util.StringJoiner;
|
||||
@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<String> values = new ArrayList<>();
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
|
||||
|
||||
this.values = values;
|
||||
return this;
|
||||
@ -73,7 +74,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_VALUES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setValues(List<String> values) {
|
||||
public void setValues(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
|
@ -29,16 +29,18 @@ import java.io.IOException;
|
||||
public class Bird {
|
||||
public static final String SERIALIZED_NAME_SIZE = "size";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Bird() {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
public Bird size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -55,12 +57,12 @@ public class Bird {
|
||||
}
|
||||
|
||||
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public Bird color(String color) {
|
||||
public Bird color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -77,7 +79,7 @@ public class Bird {
|
||||
}
|
||||
|
||||
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -29,16 +29,18 @@ import java.io.IOException;
|
||||
public class Category {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -55,12 +57,12 @@ public class Category {
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -77,7 +79,7 @@ public class Category {
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -34,21 +34,24 @@ import org.openapitools.client.model.Query;
|
||||
public class DataQuery extends Query {
|
||||
public static final String SERIALIZED_NAME_SUFFIX = "suffix";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_DATE = "date";
|
||||
@SerializedName(SERIALIZED_NAME_DATE)
|
||||
@javax.annotation.Nullable
|
||||
private OffsetDateTime date;
|
||||
|
||||
public DataQuery() {
|
||||
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
|
||||
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
@ -65,12 +68,12 @@ public class DataQuery extends Query {
|
||||
}
|
||||
|
||||
|
||||
public void setSuffix(String suffix) {
|
||||
public void setSuffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery text(String text) {
|
||||
public DataQuery text(@javax.annotation.Nullable String text) {
|
||||
|
||||
this.text = text;
|
||||
return this;
|
||||
@ -87,12 +90,12 @@ public class DataQuery extends Query {
|
||||
}
|
||||
|
||||
|
||||
public void setText(String text) {
|
||||
public void setText(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery date(OffsetDateTime date) {
|
||||
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
|
||||
this.date = date;
|
||||
return this;
|
||||
@ -109,7 +112,7 @@ public class DataQuery extends Query {
|
||||
}
|
||||
|
||||
|
||||
public void setDate(OffsetDateTime date) {
|
||||
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
|
@ -34,6 +34,7 @@ import org.openapitools.jackson.nullable.JsonNullable;
|
||||
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<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
|
||||
|
||||
/**
|
||||
@ -87,36 +88,43 @@ public class DefaultValue {
|
||||
|
||||
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<ArrayStringEnumDefaultEnum> 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<String> 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<Integer> 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<String> 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<String> 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<String> arrayStringExtensionNullable;
|
||||
|
||||
public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable";
|
||||
@SerializedName(SERIALIZED_NAME_STRING_NULLABLE)
|
||||
@javax.annotation.Nullable
|
||||
private String stringNullable;
|
||||
|
||||
public DefaultValue() {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
@ -141,12 +149,12 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
@ -171,12 +179,12 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
@ -201,12 +209,12 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
@ -231,12 +239,12 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
@ -261,12 +269,12 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
return this;
|
||||
@ -291,12 +299,12 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
return this;
|
||||
@ -321,12 +329,12 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
|
||||
this.stringNullable = stringNullable;
|
||||
return this;
|
||||
@ -343,7 +351,7 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
|
@ -30,20 +30,23 @@ import java.math.BigDecimal;
|
||||
public class NumberPropertiesOnly {
|
||||
public static final String SERIALIZED_NAME_NUMBER = "number";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_DOUBLE = "double";
|
||||
@SerializedName(SERIALIZED_NAME_DOUBLE)
|
||||
@javax.annotation.Nullable
|
||||
private Double _double;
|
||||
|
||||
public NumberPropertiesOnly() {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
|
||||
|
||||
this.number = number;
|
||||
return this;
|
||||
@ -60,12 +63,12 @@ public class NumberPropertiesOnly {
|
||||
}
|
||||
|
||||
|
||||
public void setNumber(BigDecimal number) {
|
||||
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
|
||||
|
||||
this._float = _float;
|
||||
return this;
|
||||
@ -82,12 +85,12 @@ public class NumberPropertiesOnly {
|
||||
}
|
||||
|
||||
|
||||
public void setFloat(Float _float) {
|
||||
public void setFloat(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
|
||||
|
||||
this._double = _double;
|
||||
return this;
|
||||
@ -106,7 +109,7 @@ public class NumberPropertiesOnly {
|
||||
}
|
||||
|
||||
|
||||
public void setDouble(Double _double) {
|
||||
public void setDouble(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
|
@ -34,22 +34,27 @@ import org.openapitools.client.model.Tag;
|
||||
public class Pet {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_CATEGORY = "category";
|
||||
@SerializedName(SERIALIZED_NAME_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<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String SERIALIZED_NAME_TAGS = "tags";
|
||||
@SerializedName(SERIALIZED_NAME_TAGS)
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -103,12 +108,13 @@ public class Pet {
|
||||
|
||||
public static final String SERIALIZED_NAME_STATUS = "status";
|
||||
@SerializedName(SERIALIZED_NAME_STATUS)
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -125,12 +131,12 @@ public class Pet {
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@javax.annotation.Nonnull String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -147,12 +153,12 @@ public class Pet {
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
|
||||
this.category = category;
|
||||
return this;
|
||||
@ -169,12 +175,12 @@ public class Pet {
|
||||
}
|
||||
|
||||
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
@ -199,12 +205,12 @@ public class Pet {
|
||||
}
|
||||
|
||||
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
|
||||
this.tags = tags;
|
||||
return this;
|
||||
@ -229,12 +235,12 @@ public class Pet {
|
||||
}
|
||||
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@javax.annotation.Nullable StatusEnum status) {
|
||||
|
||||
this.status = status;
|
||||
return this;
|
||||
@ -251,7 +257,7 @@ public class Pet {
|
||||
}
|
||||
|
||||
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -32,6 +32,7 @@ import java.util.List;
|
||||
public class Query {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
@ -85,12 +86,13 @@ public class Query {
|
||||
|
||||
public static final String SERIALIZED_NAME_OUTCOMES = "outcomes";
|
||||
@SerializedName(SERIALIZED_NAME_OUTCOMES)
|
||||
@javax.annotation.Nullable
|
||||
private List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
|
||||
|
||||
public Query() {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
public Query id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -107,12 +109,12 @@ public class Query {
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
@ -137,7 +139,7 @@ public class Query {
|
||||
}
|
||||
|
||||
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
|
@ -29,16 +29,18 @@ import java.io.IOException;
|
||||
public class Tag {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -55,12 +57,12 @@ public class Tag {
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -77,7 +79,7 @@ public class Tag {
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -29,12 +29,13 @@ import java.io.IOException;
|
||||
public class TestFormObjectMultipartRequestMarker {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public TestFormObjectMultipartRequestMarker() {
|
||||
}
|
||||
|
||||
public TestFormObjectMultipartRequestMarker name(String name) {
|
||||
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -51,7 +52,7 @@ public class TestFormObjectMultipartRequestMarker {
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -29,24 +29,28 @@ import java.io.IOException;
|
||||
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
|
||||
public static final String SERIALIZED_NAME_SIZE = "size";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -63,12 +67,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
}
|
||||
|
||||
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -85,12 +89,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
}
|
||||
|
||||
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -107,12 +111,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
}
|
||||
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -129,7 +133,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
}
|
||||
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -32,12 +32,13 @@ import java.util.List;
|
||||
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
public static final String SERIALIZED_NAME_VALUES = "values";
|
||||
@SerializedName(SERIALIZED_NAME_VALUES)
|
||||
@javax.annotation.Nullable
|
||||
private List<String> values = new ArrayList<>();
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
|
||||
|
||||
this.values = values;
|
||||
return this;
|
||||
@ -62,7 +63,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
}
|
||||
|
||||
|
||||
public void setValues(List<String> values) {
|
||||
public void setValues(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
|
@ -39,15 +39,17 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public Bird() {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
public Bird size(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
@ -66,12 +68,12 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public Bird color(String color) {
|
||||
public Bird color(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
return this;
|
||||
}
|
||||
@ -90,7 +92,7 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -39,15 +39,17 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -66,12 +68,12 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -90,7 +92,7 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -44,18 +44,21 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_TEXT = "text";
|
||||
@javax.annotation.Nullable
|
||||
private String text;
|
||||
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@javax.annotation.Nullable
|
||||
private Instant date;
|
||||
|
||||
public DataQuery() {
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
}
|
||||
@ -74,12 +77,12 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SUFFIX)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSuffix(String suffix) {
|
||||
public void setSuffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery text(String text) {
|
||||
public DataQuery text(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
return this;
|
||||
}
|
||||
@ -98,12 +101,12 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TEXT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setText(String text) {
|
||||
public void setText(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery date(Instant date) {
|
||||
public DataQuery date(@javax.annotation.Nullable Instant date) {
|
||||
this.date = date;
|
||||
return this;
|
||||
}
|
||||
@ -122,19 +125,19 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDate(Instant date) {
|
||||
public void setDate(@javax.annotation.Nullable Instant date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public DataQuery id(Long id) {
|
||||
public DataQuery id(@javax.annotation.Nullable Long id) {
|
||||
this.setId(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
|
||||
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.setOutcomes(outcomes);
|
||||
return this;
|
||||
}
|
||||
|
@ -52,6 +52,7 @@ import org.openapitools.client.ApiClient;
|
||||
@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<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
|
||||
|
||||
/**
|
||||
@ -92,15 +93,19 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<ArrayStringEnumDefaultEnum> 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<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
|
||||
@javax.annotation.Nullable
|
||||
private List<String> arrayString = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
|
||||
@ -115,7 +120,7 @@ public class DefaultValue {
|
||||
public DefaultValue() {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
}
|
||||
@ -142,12 +147,12 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
}
|
||||
@ -174,12 +179,12 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
}
|
||||
@ -206,12 +211,12 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
}
|
||||
@ -238,12 +243,12 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
}
|
||||
@ -270,12 +275,12 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
return this;
|
||||
}
|
||||
@ -314,12 +319,12 @@ public class DefaultValue {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
return this;
|
||||
}
|
||||
@ -358,12 +363,12 @@ public class DefaultValue {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
return this;
|
||||
}
|
||||
@ -390,7 +395,7 @@ public class DefaultValue {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
}
|
||||
|
||||
|
@ -41,18 +41,21 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@javax.annotation.Nullable
|
||||
private Float _float;
|
||||
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@javax.annotation.Nullable
|
||||
private Double _double;
|
||||
|
||||
public NumberPropertiesOnly() {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
return this;
|
||||
}
|
||||
@ -71,12 +74,12 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setNumber(BigDecimal number) {
|
||||
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
return this;
|
||||
}
|
||||
@ -95,12 +98,12 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setFloat(Float _float) {
|
||||
public void setFloat(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
return this;
|
||||
}
|
||||
@ -121,7 +124,7 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDouble(Double _double) {
|
||||
public void setDouble(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
|
@ -47,18 +47,23 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nonnull
|
||||
private String name;
|
||||
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@javax.annotation.Nullable
|
||||
private Category category;
|
||||
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@javax.annotation.Nonnull
|
||||
private List<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -99,12 +104,13 @@ public class Pet {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -123,12 +129,12 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -147,12 +153,12 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
return this;
|
||||
}
|
||||
@ -171,12 +177,12 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
}
|
||||
@ -203,12 +209,12 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@ -235,12 +241,12 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
@ -259,7 +265,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -41,6 +41,7 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
/**
|
||||
@ -81,12 +82,13 @@ public class Query {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
|
||||
@javax.annotation.Nullable
|
||||
private List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
|
||||
|
||||
public Query() {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
public Query id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -105,12 +107,12 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
}
|
||||
@ -137,7 +139,7 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTCOMES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
|
@ -39,15 +39,17 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -66,12 +68,12 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -90,7 +92,7 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -38,12 +38,13 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public TestFormObjectMultipartRequestMarker() {
|
||||
}
|
||||
|
||||
public TestFormObjectMultipartRequestMarker name(String name) {
|
||||
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -62,7 +63,7 @@ public class TestFormObjectMultipartRequestMarker {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -41,21 +41,25 @@ import org.openapitools.client.ApiClient;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
@ -74,12 +78,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
return this;
|
||||
}
|
||||
@ -98,12 +102,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -122,12 +126,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -40,12 +40,13 @@ import org.openapitools.client.ApiClient;
|
||||
@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<String> values = new ArrayList<>();
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
return this;
|
||||
}
|
||||
@ -72,7 +73,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_VALUES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setValues(List<String> values) {
|
||||
public void setValues(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
|
@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
|
||||
public class Category {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -75,12 +77,12 @@ public class Category {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -94,7 +96,7 @@ public class Category {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -52,20 +52,23 @@ import org.openapitools.client.JSON;
|
||||
public class ModelApiResponse {
|
||||
public static final String SERIALIZED_NAME_CODE = "code";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_MESSAGE = "message";
|
||||
@SerializedName(SERIALIZED_NAME_MESSAGE)
|
||||
@javax.annotation.Nullable
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse() {
|
||||
}
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
public ModelApiResponse code(@javax.annotation.Nullable Integer code) {
|
||||
this.code = code;
|
||||
return this;
|
||||
}
|
||||
@ -79,12 +82,12 @@ public class ModelApiResponse {
|
||||
return code;
|
||||
}
|
||||
|
||||
public void setCode(Integer code) {
|
||||
public void setCode(@javax.annotation.Nullable Integer code) {
|
||||
this.code = code;
|
||||
}
|
||||
|
||||
|
||||
public ModelApiResponse type(String type) {
|
||||
public ModelApiResponse type(@javax.annotation.Nullable String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
@ -98,12 +101,12 @@ public class ModelApiResponse {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
public void setType(@javax.annotation.Nullable String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
public ModelApiResponse message(String message) {
|
||||
public ModelApiResponse message(@javax.annotation.Nullable String message) {
|
||||
this.message = message;
|
||||
return this;
|
||||
}
|
||||
@ -117,7 +120,7 @@ public class ModelApiResponse {
|
||||
return message;
|
||||
}
|
||||
|
||||
public void setMessage(String message) {
|
||||
public void setMessage(@javax.annotation.Nullable String message) {
|
||||
this.message = message;
|
||||
}
|
||||
|
||||
|
@ -53,18 +53,22 @@ import org.openapitools.client.JSON;
|
||||
public class Order {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_QUANTITY = "quantity";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
/**
|
||||
@ -123,16 +127,18 @@ public class Order {
|
||||
|
||||
public static final String SERIALIZED_NAME_STATUS = "status";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Order() {
|
||||
}
|
||||
|
||||
public Order id(Long id) {
|
||||
public Order id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -146,12 +152,12 @@ public class Order {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Order petId(Long petId) {
|
||||
public Order petId(@javax.annotation.Nullable Long petId) {
|
||||
this.petId = petId;
|
||||
return this;
|
||||
}
|
||||
@ -165,12 +171,12 @@ public class Order {
|
||||
return petId;
|
||||
}
|
||||
|
||||
public void setPetId(Long petId) {
|
||||
public void setPetId(@javax.annotation.Nullable Long petId) {
|
||||
this.petId = petId;
|
||||
}
|
||||
|
||||
|
||||
public Order quantity(Integer quantity) {
|
||||
public Order quantity(@javax.annotation.Nullable Integer quantity) {
|
||||
this.quantity = quantity;
|
||||
return this;
|
||||
}
|
||||
@ -184,12 +190,12 @@ public class Order {
|
||||
return quantity;
|
||||
}
|
||||
|
||||
public void setQuantity(Integer quantity) {
|
||||
public void setQuantity(@javax.annotation.Nullable Integer quantity) {
|
||||
this.quantity = quantity;
|
||||
}
|
||||
|
||||
|
||||
public Order shipDate(OffsetDateTime shipDate) {
|
||||
public Order shipDate(@javax.annotation.Nullable OffsetDateTime shipDate) {
|
||||
this.shipDate = shipDate;
|
||||
return this;
|
||||
}
|
||||
@ -203,12 +209,12 @@ public class Order {
|
||||
return shipDate;
|
||||
}
|
||||
|
||||
public void setShipDate(OffsetDateTime shipDate) {
|
||||
public void setShipDate(@javax.annotation.Nullable OffsetDateTime shipDate) {
|
||||
this.shipDate = shipDate;
|
||||
}
|
||||
|
||||
|
||||
public Order status(StatusEnum status) {
|
||||
public Order status(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
@ -222,12 +228,12 @@ public class Order {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
public Order complete(Boolean complete) {
|
||||
public Order complete(@javax.annotation.Nullable Boolean complete) {
|
||||
this.complete = complete;
|
||||
return this;
|
||||
}
|
||||
@ -241,7 +247,7 @@ public class Order {
|
||||
return complete;
|
||||
}
|
||||
|
||||
public void setComplete(Boolean complete) {
|
||||
public void setComplete(@javax.annotation.Nullable Boolean complete) {
|
||||
this.complete = complete;
|
||||
}
|
||||
|
||||
|
@ -56,22 +56,27 @@ import org.openapitools.client.JSON;
|
||||
public class Pet {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_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<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String SERIALIZED_NAME_TAGS = "tags";
|
||||
@SerializedName(SERIALIZED_NAME_TAGS)
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -131,12 +136,13 @@ public class Pet {
|
||||
public static final String SERIALIZED_NAME_STATUS = "status";
|
||||
@Deprecated
|
||||
@SerializedName(SERIALIZED_NAME_STATUS)
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -150,12 +156,12 @@ public class Pet {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
return this;
|
||||
}
|
||||
@ -169,12 +175,12 @@ public class Pet {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -188,12 +194,12 @@ public class Pet {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
}
|
||||
@ -215,12 +221,12 @@ public class Pet {
|
||||
return photoUrls;
|
||||
}
|
||||
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@ -242,13 +248,13 @@ public class Pet {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
@Deprecated
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
@ -265,7 +271,7 @@ public class Pet {
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
|
||||
public class Tag {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -75,12 +77,12 @@ public class Tag {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -94,7 +96,7 @@ public class Tag {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -52,40 +52,48 @@ import org.openapitools.client.JSON;
|
||||
public class User {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_FIRST_NAME = "firstName";
|
||||
@SerializedName(SERIALIZED_NAME_FIRST_NAME)
|
||||
@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;
|
||||
|
||||
public static final String SERIALIZED_NAME_EMAIL = "email";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_PHONE = "phone";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public User() {
|
||||
}
|
||||
|
||||
public User id(Long id) {
|
||||
public User id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -99,12 +107,12 @@ public class User {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public User username(String username) {
|
||||
public User username(@javax.annotation.Nullable String username) {
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
@ -118,12 +126,12 @@ public class User {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setUsername(String username) {
|
||||
public void setUsername(@javax.annotation.Nullable String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
|
||||
public User firstName(String firstName) {
|
||||
public User firstName(@javax.annotation.Nullable String firstName) {
|
||||
this.firstName = firstName;
|
||||
return this;
|
||||
}
|
||||
@ -137,12 +145,12 @@ public class User {
|
||||
return firstName;
|
||||
}
|
||||
|
||||
public void setFirstName(String firstName) {
|
||||
public void setFirstName(@javax.annotation.Nullable String firstName) {
|
||||
this.firstName = firstName;
|
||||
}
|
||||
|
||||
|
||||
public User lastName(String lastName) {
|
||||
public User lastName(@javax.annotation.Nullable String lastName) {
|
||||
this.lastName = lastName;
|
||||
return this;
|
||||
}
|
||||
@ -156,12 +164,12 @@ public class User {
|
||||
return lastName;
|
||||
}
|
||||
|
||||
public void setLastName(String lastName) {
|
||||
public void setLastName(@javax.annotation.Nullable String lastName) {
|
||||
this.lastName = lastName;
|
||||
}
|
||||
|
||||
|
||||
public User email(String email) {
|
||||
public User email(@javax.annotation.Nullable String email) {
|
||||
this.email = email;
|
||||
return this;
|
||||
}
|
||||
@ -175,12 +183,12 @@ public class User {
|
||||
return email;
|
||||
}
|
||||
|
||||
public void setEmail(String email) {
|
||||
public void setEmail(@javax.annotation.Nullable String email) {
|
||||
this.email = email;
|
||||
}
|
||||
|
||||
|
||||
public User password(String password) {
|
||||
public User password(@javax.annotation.Nullable String password) {
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
@ -194,12 +202,12 @@ public class User {
|
||||
return password;
|
||||
}
|
||||
|
||||
public void setPassword(String password) {
|
||||
public void setPassword(@javax.annotation.Nullable String password) {
|
||||
this.password = password;
|
||||
}
|
||||
|
||||
|
||||
public User phone(String phone) {
|
||||
public User phone(@javax.annotation.Nullable String phone) {
|
||||
this.phone = phone;
|
||||
return this;
|
||||
}
|
||||
@ -213,12 +221,12 @@ public class User {
|
||||
return phone;
|
||||
}
|
||||
|
||||
public void setPhone(String phone) {
|
||||
public void setPhone(@javax.annotation.Nullable String phone) {
|
||||
this.phone = phone;
|
||||
}
|
||||
|
||||
|
||||
public User userStatus(Integer userStatus) {
|
||||
public User userStatus(@javax.annotation.Nullable Integer userStatus) {
|
||||
this.userStatus = userStatus;
|
||||
return this;
|
||||
}
|
||||
@ -232,7 +240,7 @@ public class User {
|
||||
return userStatus;
|
||||
}
|
||||
|
||||
public void setUserStatus(Integer userStatus) {
|
||||
public void setUserStatus(@javax.annotation.Nullable Integer userStatus) {
|
||||
this.userStatus = userStatus;
|
||||
}
|
||||
|
||||
|
@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
|
||||
public class Bird {
|
||||
public static final String SERIALIZED_NAME_SIZE = "size";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Bird() {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
public Bird size(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
@ -75,12 +77,12 @@ public class Bird {
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public Bird color(String color) {
|
||||
public Bird color(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
return this;
|
||||
}
|
||||
@ -94,7 +96,7 @@ public class Bird {
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
|
||||
public class Category {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -75,12 +77,12 @@ public class Category {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -94,7 +96,7 @@ public class Category {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -56,20 +56,23 @@ import org.openapitools.client.JSON;
|
||||
public class DataQuery extends Query {
|
||||
public static final String SERIALIZED_NAME_SUFFIX = "suffix";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_DATE = "date";
|
||||
@SerializedName(SERIALIZED_NAME_DATE)
|
||||
@javax.annotation.Nullable
|
||||
private OffsetDateTime date;
|
||||
|
||||
public DataQuery() {
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
}
|
||||
@ -83,12 +86,12 @@ public class DataQuery extends Query {
|
||||
return suffix;
|
||||
}
|
||||
|
||||
public void setSuffix(String suffix) {
|
||||
public void setSuffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery text(String text) {
|
||||
public DataQuery text(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
return this;
|
||||
}
|
||||
@ -102,12 +105,12 @@ public class DataQuery extends Query {
|
||||
return text;
|
||||
}
|
||||
|
||||
public void setText(String text) {
|
||||
public void setText(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
|
||||
public DataQuery date(OffsetDateTime date) {
|
||||
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
this.date = date;
|
||||
return this;
|
||||
}
|
||||
@ -121,7 +124,7 @@ public class DataQuery extends Query {
|
||||
return date;
|
||||
}
|
||||
|
||||
public void setDate(OffsetDateTime date) {
|
||||
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
|
@ -56,6 +56,7 @@ import org.openapitools.client.JSON;
|
||||
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<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
|
||||
|
||||
/**
|
||||
@ -114,36 +115,43 @@ public class DefaultValue {
|
||||
|
||||
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<ArrayStringEnumDefaultEnum> 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<String> 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<Integer> 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<String> 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<String> 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<String> arrayStringExtensionNullable;
|
||||
|
||||
public static final String SERIALIZED_NAME_STRING_NULLABLE = "string_nullable";
|
||||
@SerializedName(SERIALIZED_NAME_STRING_NULLABLE)
|
||||
@javax.annotation.Nullable
|
||||
private String stringNullable;
|
||||
|
||||
public DefaultValue() {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
}
|
||||
@ -165,12 +173,12 @@ public class DefaultValue {
|
||||
return arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
}
|
||||
@ -192,12 +200,12 @@ public class DefaultValue {
|
||||
return arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
}
|
||||
@ -219,12 +227,12 @@ public class DefaultValue {
|
||||
return arrayStringDefault;
|
||||
}
|
||||
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
}
|
||||
@ -246,12 +254,12 @@ public class DefaultValue {
|
||||
return arrayIntegerDefault;
|
||||
}
|
||||
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
}
|
||||
@ -273,12 +281,12 @@ public class DefaultValue {
|
||||
return arrayString;
|
||||
}
|
||||
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
return this;
|
||||
}
|
||||
@ -300,12 +308,12 @@ public class DefaultValue {
|
||||
return arrayStringNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
return this;
|
||||
}
|
||||
@ -327,12 +335,12 @@ public class DefaultValue {
|
||||
return arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = stringNullable;
|
||||
return this;
|
||||
}
|
||||
@ -346,7 +354,7 @@ public class DefaultValue {
|
||||
return stringNullable;
|
||||
}
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
|
@ -53,20 +53,23 @@ import org.openapitools.client.JSON;
|
||||
public class NumberPropertiesOnly {
|
||||
public static final String SERIALIZED_NAME_NUMBER = "number";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_DOUBLE = "double";
|
||||
@SerializedName(SERIALIZED_NAME_DOUBLE)
|
||||
@javax.annotation.Nullable
|
||||
private Double _double;
|
||||
|
||||
public NumberPropertiesOnly() {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
return this;
|
||||
}
|
||||
@ -80,12 +83,12 @@ public class NumberPropertiesOnly {
|
||||
return number;
|
||||
}
|
||||
|
||||
public void setNumber(BigDecimal number) {
|
||||
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
return this;
|
||||
}
|
||||
@ -99,12 +102,12 @@ public class NumberPropertiesOnly {
|
||||
return _float;
|
||||
}
|
||||
|
||||
public void setFloat(Float _float) {
|
||||
public void setFloat(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
return this;
|
||||
}
|
||||
@ -120,7 +123,7 @@ public class NumberPropertiesOnly {
|
||||
return _double;
|
||||
}
|
||||
|
||||
public void setDouble(Double _double) {
|
||||
public void setDouble(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
|
@ -56,22 +56,27 @@ import org.openapitools.client.JSON;
|
||||
public class Pet {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_CATEGORY = "category";
|
||||
@SerializedName(SERIALIZED_NAME_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<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String SERIALIZED_NAME_TAGS = "tags";
|
||||
@SerializedName(SERIALIZED_NAME_TAGS)
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -130,12 +135,13 @@ public class Pet {
|
||||
|
||||
public static final String SERIALIZED_NAME_STATUS = "status";
|
||||
@SerializedName(SERIALIZED_NAME_STATUS)
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -149,12 +155,12 @@ public class Pet {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -168,12 +174,12 @@ public class Pet {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
return this;
|
||||
}
|
||||
@ -187,12 +193,12 @@ public class Pet {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
}
|
||||
@ -214,12 +220,12 @@ public class Pet {
|
||||
return photoUrls;
|
||||
}
|
||||
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
return this;
|
||||
}
|
||||
@ -241,12 +247,12 @@ public class Pet {
|
||||
return tags;
|
||||
}
|
||||
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
return this;
|
||||
}
|
||||
@ -260,7 +266,7 @@ public class Pet {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,7 @@ import org.openapitools.client.JSON;
|
||||
public class Query {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_ID)
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
@ -112,12 +113,13 @@ public class Query {
|
||||
|
||||
public static final String SERIALIZED_NAME_OUTCOMES = "outcomes";
|
||||
@SerializedName(SERIALIZED_NAME_OUTCOMES)
|
||||
@javax.annotation.Nullable
|
||||
private List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
|
||||
|
||||
public Query() {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
public Query id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -131,12 +133,12 @@ public class Query {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
}
|
||||
@ -158,7 +160,7 @@ public class Query {
|
||||
return outcomes;
|
||||
}
|
||||
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
|
@ -52,16 +52,18 @@ import org.openapitools.client.JSON;
|
||||
public class Tag {
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -75,12 +77,12 @@ public class Tag {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -94,7 +96,7 @@ public class Tag {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -52,12 +52,13 @@ import org.openapitools.client.JSON;
|
||||
public class TestFormObjectMultipartRequestMarker {
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_NAME)
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public TestFormObjectMultipartRequestMarker() {
|
||||
}
|
||||
|
||||
public TestFormObjectMultipartRequestMarker name(String name) {
|
||||
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -71,7 +72,7 @@ public class TestFormObjectMultipartRequestMarker {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -52,24 +52,28 @@ import org.openapitools.client.JSON;
|
||||
public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter {
|
||||
public static final String SERIALIZED_NAME_SIZE = "size";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_ID = "id";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
return this;
|
||||
}
|
||||
@ -83,12 +87,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return size;
|
||||
}
|
||||
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
return this;
|
||||
}
|
||||
@ -102,12 +106,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return color;
|
||||
}
|
||||
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -121,12 +125,12 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -140,7 +144,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -54,12 +54,13 @@ import org.openapitools.client.JSON;
|
||||
public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
public static final String SERIALIZED_NAME_VALUES = "values";
|
||||
@SerializedName(SERIALIZED_NAME_VALUES)
|
||||
@javax.annotation.Nullable
|
||||
private List<String> values = new ArrayList<>();
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
return this;
|
||||
}
|
||||
@ -81,7 +82,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
return values;
|
||||
}
|
||||
|
||||
public void setValues(List<String> values) {
|
||||
public void setValues(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@jakarta.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public Bird() {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
public Bird size(@jakarta.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@jakarta.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public Bird color(String color) {
|
||||
public Bird color(@jakarta.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@jakarta.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@jakarta.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@jakarta.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@jakarta.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@jakarta.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@jakarta.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -39,19 +39,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_TEXT = "text";
|
||||
@jakarta.annotation.Nullable
|
||||
private String text;
|
||||
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@jakarta.annotation.Nullable
|
||||
private Instant date;
|
||||
|
||||
public DataQuery() {
|
||||
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
public DataQuery suffix(@jakarta.annotation.Nullable String suffix) {
|
||||
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
@ -72,11 +75,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SUFFIX)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSuffix(String suffix) {
|
||||
public void setSuffix(@jakarta.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
public DataQuery text(String text) {
|
||||
public DataQuery text(@jakarta.annotation.Nullable String text) {
|
||||
|
||||
this.text = text;
|
||||
return this;
|
||||
@ -97,11 +100,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TEXT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setText(String text) {
|
||||
public void setText(@jakarta.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public DataQuery date(Instant date) {
|
||||
public DataQuery date(@jakarta.annotation.Nullable Instant date) {
|
||||
|
||||
this.date = date;
|
||||
return this;
|
||||
@ -122,18 +125,18 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDate(Instant date) {
|
||||
public void setDate(@jakarta.annotation.Nullable Instant date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery id(Long id) {
|
||||
public DataQuery id(@jakarta.annotation.Nullable Long id) {
|
||||
this.setId(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
|
||||
public DataQuery outcomes(@jakarta.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.setOutcomes(outcomes);
|
||||
return this;
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
|
||||
|
||||
/**
|
||||
@ -87,30 +88,37 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
|
||||
@jakarta.annotation.Nullable
|
||||
private List<ArrayStringEnumDefaultEnum> 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<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
|
||||
@jakarta.annotation.Nullable
|
||||
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
|
||||
@jakarta.annotation.Nullable
|
||||
private List<String> arrayString = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
|
||||
@jakarta.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
|
||||
@jakarta.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
|
||||
@jakarta.annotation.Nullable
|
||||
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
|
||||
|
||||
public DefaultValue() {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public DefaultValue arrayStringEnumRefDefault(@jakarta.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
@ -139,11 +147,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public void setArrayStringEnumRefDefault(@jakarta.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public DefaultValue arrayStringEnumDefault(@jakarta.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
@ -172,11 +180,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public void setArrayStringEnumDefault(@jakarta.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
public DefaultValue arrayStringDefault(@jakarta.annotation.Nullable List<String> arrayStringDefault) {
|
||||
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
@ -205,11 +213,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
public void setArrayStringDefault(@jakarta.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public DefaultValue arrayIntegerDefault(@jakarta.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
@ -238,11 +246,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public void setArrayIntegerDefault(@jakarta.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
public DefaultValue arrayString(@jakarta.annotation.Nullable List<String> arrayString) {
|
||||
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
@ -271,11 +279,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
public void setArrayString(@jakarta.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
public DefaultValue arrayStringNullable(@jakarta.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
|
||||
return this;
|
||||
@ -316,11 +324,11 @@ public class DefaultValue {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
public void setArrayStringNullable(@jakarta.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public DefaultValue arrayStringExtensionNullable(@jakarta.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
|
||||
return this;
|
||||
@ -361,11 +369,11 @@ public class DefaultValue {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public void setArrayStringExtensionNullable(@jakarta.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
}
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
public DefaultValue stringNullable(@jakarta.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
|
||||
return this;
|
||||
@ -394,7 +402,7 @@ public class DefaultValue {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
public void setStringNullable(@jakarta.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
}
|
||||
|
||||
|
@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@jakarta.annotation.Nullable
|
||||
private Float _float;
|
||||
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@jakarta.annotation.Nullable
|
||||
private Double _double;
|
||||
|
||||
public NumberPropertiesOnly() {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
public NumberPropertiesOnly number(@jakarta.annotation.Nullable BigDecimal number) {
|
||||
|
||||
this.number = number;
|
||||
return this;
|
||||
@ -67,11 +70,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setNumber(BigDecimal number) {
|
||||
public void setNumber(@jakarta.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
public NumberPropertiesOnly _float(@jakarta.annotation.Nullable Float _float) {
|
||||
|
||||
this._float = _float;
|
||||
return this;
|
||||
@ -92,11 +95,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setFloat(Float _float) {
|
||||
public void setFloat(@jakarta.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
public NumberPropertiesOnly _double(@jakarta.annotation.Nullable Double _double) {
|
||||
|
||||
this._double = _double;
|
||||
return this;
|
||||
@ -119,7 +122,7 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDouble(Double _double) {
|
||||
public void setDouble(@jakarta.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
|
@ -42,18 +42,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@jakarta.annotation.Nonnull
|
||||
private String name;
|
||||
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@jakarta.annotation.Nullable
|
||||
private Category category;
|
||||
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@jakarta.annotation.Nonnull
|
||||
private List<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@jakarta.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -94,12 +99,13 @@ public class Pet {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@jakarta.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@jakarta.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -120,11 +126,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@jakarta.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@jakarta.annotation.Nonnull String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -145,11 +151,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setName(String name) {
|
||||
public void setName(@jakarta.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@jakarta.annotation.Nullable Category category) {
|
||||
|
||||
this.category = category;
|
||||
return this;
|
||||
@ -170,11 +176,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@jakarta.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@jakarta.annotation.Nonnull List<String> photoUrls) {
|
||||
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
@ -203,11 +209,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@jakarta.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@jakarta.annotation.Nullable List<Tag> tags) {
|
||||
|
||||
this.tags = tags;
|
||||
return this;
|
||||
@ -236,11 +242,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@jakarta.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@jakarta.annotation.Nullable StatusEnum status) {
|
||||
|
||||
this.status = status;
|
||||
return this;
|
||||
@ -261,7 +267,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@jakarta.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
/**
|
||||
@ -76,12 +77,13 @@ public class Query {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
|
||||
@jakarta.annotation.Nullable
|
||||
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
|
||||
|
||||
public Query() {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
public Query id(@jakarta.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -102,11 +104,11 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@jakarta.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
public Query outcomes(@jakarta.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
@ -135,7 +137,7 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTCOMES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
public void setOutcomes(@jakarta.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@jakarta.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@jakarta.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@jakarta.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@jakarta.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@jakarta.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public TestFormObjectMultipartRequestMarker() {
|
||||
}
|
||||
|
||||
public TestFormObjectMultipartRequestMarker name(String name) {
|
||||
public TestFormObjectMultipartRequestMarker name(@jakarta.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -59,7 +60,7 @@ public class TestFormObjectMultipartRequestMarker {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@jakarta.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -36,21 +36,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@jakarta.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@jakarta.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@jakarta.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@jakarta.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -71,11 +75,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@jakarta.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@jakarta.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -96,11 +100,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@jakarta.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@jakarta.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -121,11 +125,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@jakarta.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@jakarta.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@jakarta.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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<String> values = new ArrayList<>();
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@jakarta.annotation.Nullable List<String> values) {
|
||||
|
||||
this.values = values;
|
||||
return this;
|
||||
@ -70,7 +71,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_VALUES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setValues(List<String> values) {
|
||||
public void setValues(@jakarta.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public Bird() {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
public Bird size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public Bird color(String color) {
|
||||
public Bird color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -39,19 +39,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_TEXT = "text";
|
||||
@javax.annotation.Nullable
|
||||
private String text;
|
||||
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@javax.annotation.Nullable
|
||||
private OffsetDateTime date;
|
||||
|
||||
public DataQuery() {
|
||||
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
|
||||
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
@ -72,11 +75,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SUFFIX)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSuffix(String suffix) {
|
||||
public void setSuffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
public DataQuery text(String text) {
|
||||
public DataQuery text(@javax.annotation.Nullable String text) {
|
||||
|
||||
this.text = text;
|
||||
return this;
|
||||
@ -97,11 +100,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TEXT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setText(String text) {
|
||||
public void setText(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public DataQuery date(OffsetDateTime date) {
|
||||
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
|
||||
this.date = date;
|
||||
return this;
|
||||
@ -122,18 +125,18 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDate(OffsetDateTime date) {
|
||||
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery id(Long id) {
|
||||
public DataQuery id(@javax.annotation.Nullable Long id) {
|
||||
this.setId(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
|
||||
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.setOutcomes(outcomes);
|
||||
return this;
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
|
||||
|
||||
/**
|
||||
@ -87,30 +88,37 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<ArrayStringEnumDefaultEnum> 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<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
|
||||
@javax.annotation.Nullable
|
||||
private List<String> arrayString = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
|
||||
|
||||
public DefaultValue() {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
@ -139,11 +147,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
@ -172,11 +180,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
@ -205,11 +213,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
@ -238,11 +246,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
@ -271,11 +279,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
|
||||
return this;
|
||||
@ -316,11 +324,11 @@ public class DefaultValue {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
|
||||
return this;
|
||||
@ -361,11 +369,11 @@ public class DefaultValue {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
}
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
|
||||
return this;
|
||||
@ -394,7 +402,7 @@ public class DefaultValue {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
}
|
||||
|
||||
|
@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@javax.annotation.Nullable
|
||||
private Float _float;
|
||||
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@javax.annotation.Nullable
|
||||
private Double _double;
|
||||
|
||||
public NumberPropertiesOnly() {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
|
||||
|
||||
this.number = number;
|
||||
return this;
|
||||
@ -67,11 +70,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setNumber(BigDecimal number) {
|
||||
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
|
||||
|
||||
this._float = _float;
|
||||
return this;
|
||||
@ -92,11 +95,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setFloat(Float _float) {
|
||||
public void setFloat(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
|
||||
|
||||
this._double = _double;
|
||||
return this;
|
||||
@ -119,7 +122,7 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDouble(Double _double) {
|
||||
public void setDouble(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
|
@ -42,18 +42,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nonnull
|
||||
private String name;
|
||||
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@javax.annotation.Nullable
|
||||
private Category category;
|
||||
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@javax.annotation.Nonnull
|
||||
private List<String> photoUrls = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags = new ArrayList<>();
|
||||
|
||||
/**
|
||||
@ -94,12 +99,13 @@ public class Pet {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -120,11 +126,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@javax.annotation.Nonnull String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -145,11 +151,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
|
||||
this.category = category;
|
||||
return this;
|
||||
@ -170,11 +176,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
@ -203,11 +209,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
|
||||
this.tags = tags;
|
||||
return this;
|
||||
@ -236,11 +242,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@javax.annotation.Nullable StatusEnum status) {
|
||||
|
||||
this.status = status;
|
||||
return this;
|
||||
@ -261,7 +267,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
/**
|
||||
@ -76,12 +77,13 @@ public class Query {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
|
||||
@javax.annotation.Nullable
|
||||
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
|
||||
|
||||
public Query() {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
public Query id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -102,11 +104,11 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
@ -135,7 +137,7 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTCOMES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public TestFormObjectMultipartRequestMarker() {
|
||||
}
|
||||
|
||||
public TestFormObjectMultipartRequestMarker name(String name) {
|
||||
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -59,7 +60,7 @@ public class TestFormObjectMultipartRequestMarker {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -36,21 +36,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -71,11 +75,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -96,11 +100,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -121,11 +125,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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<String> values = new ArrayList<>();
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
|
||||
|
||||
this.values = values;
|
||||
return this;
|
||||
@ -70,7 +71,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_VALUES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setValues(List<String> values) {
|
||||
public void setValues(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public Bird() {
|
||||
}
|
||||
|
||||
public Bird size(String size) {
|
||||
public Bird size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public Bird color(String color) {
|
||||
public Bird color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Bird {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
public Category id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Category name(String name) {
|
||||
public Category name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Category {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -39,19 +39,22 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_TEXT = "text";
|
||||
@javax.annotation.Nullable
|
||||
private String text;
|
||||
|
||||
public static final String JSON_PROPERTY_DATE = "date";
|
||||
@javax.annotation.Nullable
|
||||
private OffsetDateTime date;
|
||||
|
||||
public DataQuery() {
|
||||
|
||||
}
|
||||
|
||||
public DataQuery suffix(String suffix) {
|
||||
public DataQuery suffix(@javax.annotation.Nullable String suffix) {
|
||||
|
||||
this.suffix = suffix;
|
||||
return this;
|
||||
@ -72,11 +75,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SUFFIX)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSuffix(String suffix) {
|
||||
public void setSuffix(@javax.annotation.Nullable String suffix) {
|
||||
this.suffix = suffix;
|
||||
}
|
||||
|
||||
public DataQuery text(String text) {
|
||||
public DataQuery text(@javax.annotation.Nullable String text) {
|
||||
|
||||
this.text = text;
|
||||
return this;
|
||||
@ -97,11 +100,11 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TEXT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setText(String text) {
|
||||
public void setText(@javax.annotation.Nullable String text) {
|
||||
this.text = text;
|
||||
}
|
||||
|
||||
public DataQuery date(OffsetDateTime date) {
|
||||
public DataQuery date(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
|
||||
this.date = date;
|
||||
return this;
|
||||
@ -122,18 +125,18 @@ public class DataQuery extends Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DATE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDate(OffsetDateTime date) {
|
||||
public void setDate(@javax.annotation.Nullable OffsetDateTime date) {
|
||||
this.date = date;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery id(Long id) {
|
||||
public DataQuery id(@javax.annotation.Nullable Long id) {
|
||||
this.setId(id);
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DataQuery outcomes(List<OutcomesEnum> outcomes) {
|
||||
public DataQuery outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.setOutcomes(outcomes);
|
||||
return this;
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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<StringEnumRef> arrayStringEnumRefDefault = new ArrayList<>(Arrays.asList(StringEnumRef.SUCCESS, StringEnumRef.FAILURE));
|
||||
|
||||
/**
|
||||
@ -87,30 +88,37 @@ public class DefaultValue {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT = "array_string_enum_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<ArrayStringEnumDefaultEnum> 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<String> arrayStringDefault = new ArrayList<>(Arrays.asList("failure", "skipped"));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_INTEGER_DEFAULT = "array_integer_default";
|
||||
@javax.annotation.Nullable
|
||||
private List<Integer> arrayIntegerDefault = new ArrayList<>(Arrays.asList(1, 3));
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING = "array_string";
|
||||
@javax.annotation.Nullable
|
||||
private List<String> arrayString;
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_NULLABLE = "array_string_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_STRING_EXTENSION_NULLABLE = "array_string_extension_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<List<String>> arrayStringExtensionNullable = JsonNullable.<List<String>>undefined();
|
||||
|
||||
public static final String JSON_PROPERTY_STRING_NULLABLE = "string_nullable";
|
||||
@javax.annotation.Nullable
|
||||
private JsonNullable<String> stringNullable = JsonNullable.<String>undefined();
|
||||
|
||||
public DefaultValue() {
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public DefaultValue arrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
return this;
|
||||
@ -139,11 +147,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_REF_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumRefDefault(List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
public void setArrayStringEnumRefDefault(@javax.annotation.Nullable List<StringEnumRef> arrayStringEnumRefDefault) {
|
||||
this.arrayStringEnumRefDefault = arrayStringEnumRefDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public DefaultValue arrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
return this;
|
||||
@ -172,11 +180,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_ENUM_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringEnumDefault(List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
public void setArrayStringEnumDefault(@javax.annotation.Nullable List<ArrayStringEnumDefaultEnum> arrayStringEnumDefault) {
|
||||
this.arrayStringEnumDefault = arrayStringEnumDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringDefault(List<String> arrayStringDefault) {
|
||||
public DefaultValue arrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
return this;
|
||||
@ -205,11 +213,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayStringDefault(List<String> arrayStringDefault) {
|
||||
public void setArrayStringDefault(@javax.annotation.Nullable List<String> arrayStringDefault) {
|
||||
this.arrayStringDefault = arrayStringDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public DefaultValue arrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
return this;
|
||||
@ -238,11 +246,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_INTEGER_DEFAULT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayIntegerDefault(List<Integer> arrayIntegerDefault) {
|
||||
public void setArrayIntegerDefault(@javax.annotation.Nullable List<Integer> arrayIntegerDefault) {
|
||||
this.arrayIntegerDefault = arrayIntegerDefault;
|
||||
}
|
||||
|
||||
public DefaultValue arrayString(List<String> arrayString) {
|
||||
public DefaultValue arrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
|
||||
this.arrayString = arrayString;
|
||||
return this;
|
||||
@ -271,11 +279,11 @@ public class DefaultValue {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayString(List<String> arrayString) {
|
||||
public void setArrayString(@javax.annotation.Nullable List<String> arrayString) {
|
||||
this.arrayString = arrayString;
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringNullable(List<String> arrayStringNullable) {
|
||||
public DefaultValue arrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
|
||||
return this;
|
||||
@ -316,11 +324,11 @@ public class DefaultValue {
|
||||
this.arrayStringNullable = arrayStringNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringNullable(List<String> arrayStringNullable) {
|
||||
public void setArrayStringNullable(@javax.annotation.Nullable List<String> arrayStringNullable) {
|
||||
this.arrayStringNullable = JsonNullable.<List<String>>of(arrayStringNullable);
|
||||
}
|
||||
|
||||
public DefaultValue arrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public DefaultValue arrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
|
||||
return this;
|
||||
@ -361,11 +369,11 @@ public class DefaultValue {
|
||||
this.arrayStringExtensionNullable = arrayStringExtensionNullable;
|
||||
}
|
||||
|
||||
public void setArrayStringExtensionNullable(List<String> arrayStringExtensionNullable) {
|
||||
public void setArrayStringExtensionNullable(@javax.annotation.Nullable List<String> arrayStringExtensionNullable) {
|
||||
this.arrayStringExtensionNullable = JsonNullable.<List<String>>of(arrayStringExtensionNullable);
|
||||
}
|
||||
|
||||
public DefaultValue stringNullable(String stringNullable) {
|
||||
public DefaultValue stringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
|
||||
return this;
|
||||
@ -394,7 +402,7 @@ public class DefaultValue {
|
||||
this.stringNullable = stringNullable;
|
||||
}
|
||||
|
||||
public void setStringNullable(String stringNullable) {
|
||||
public void setStringNullable(@javax.annotation.Nullable String stringNullable) {
|
||||
this.stringNullable = JsonNullable.<String>of(stringNullable);
|
||||
}
|
||||
|
||||
|
@ -35,18 +35,21 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_FLOAT = "float";
|
||||
@javax.annotation.Nullable
|
||||
private Float _float;
|
||||
|
||||
public static final String JSON_PROPERTY_DOUBLE = "double";
|
||||
@javax.annotation.Nullable
|
||||
private Double _double;
|
||||
|
||||
public NumberPropertiesOnly() {
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly number(BigDecimal number) {
|
||||
public NumberPropertiesOnly number(@javax.annotation.Nullable BigDecimal number) {
|
||||
|
||||
this.number = number;
|
||||
return this;
|
||||
@ -67,11 +70,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setNumber(BigDecimal number) {
|
||||
public void setNumber(@javax.annotation.Nullable BigDecimal number) {
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _float(Float _float) {
|
||||
public NumberPropertiesOnly _float(@javax.annotation.Nullable Float _float) {
|
||||
|
||||
this._float = _float;
|
||||
return this;
|
||||
@ -92,11 +95,11 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_FLOAT)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setFloat(Float _float) {
|
||||
public void setFloat(@javax.annotation.Nullable Float _float) {
|
||||
this._float = _float;
|
||||
}
|
||||
|
||||
public NumberPropertiesOnly _double(Double _double) {
|
||||
public NumberPropertiesOnly _double(@javax.annotation.Nullable Double _double) {
|
||||
|
||||
this._double = _double;
|
||||
return this;
|
||||
@ -119,7 +122,7 @@ public class NumberPropertiesOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_DOUBLE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setDouble(Double _double) {
|
||||
public void setDouble(@javax.annotation.Nullable Double _double) {
|
||||
this._double = _double;
|
||||
}
|
||||
|
||||
|
@ -42,18 +42,23 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nonnull
|
||||
private String name;
|
||||
|
||||
public static final String JSON_PROPERTY_CATEGORY = "category";
|
||||
@javax.annotation.Nullable
|
||||
private Category category;
|
||||
|
||||
public static final String JSON_PROPERTY_PHOTO_URLS = "photoUrls";
|
||||
@javax.annotation.Nonnull
|
||||
private List<String> photoUrls;
|
||||
|
||||
public static final String JSON_PROPERTY_TAGS = "tags";
|
||||
@javax.annotation.Nullable
|
||||
private List<Tag> tags;
|
||||
|
||||
/**
|
||||
@ -94,12 +99,13 @@ public class Pet {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_STATUS = "status";
|
||||
@javax.annotation.Nullable
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
public Pet id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -120,11 +126,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Pet name(String name) {
|
||||
public Pet name(@javax.annotation.Nonnull String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -145,11 +151,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nonnull String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public Pet category(Category category) {
|
||||
public Pet category(@javax.annotation.Nullable Category category) {
|
||||
|
||||
this.category = category;
|
||||
return this;
|
||||
@ -170,11 +176,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CATEGORY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setCategory(Category category) {
|
||||
public void setCategory(@javax.annotation.Nullable Category category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
public Pet photoUrls(List<String> photoUrls) {
|
||||
public Pet photoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
|
||||
this.photoUrls = photoUrls;
|
||||
return this;
|
||||
@ -203,11 +209,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setPhotoUrls(List<String> photoUrls) {
|
||||
public void setPhotoUrls(@javax.annotation.Nonnull List<String> photoUrls) {
|
||||
this.photoUrls = photoUrls;
|
||||
}
|
||||
|
||||
public Pet tags(List<Tag> tags) {
|
||||
public Pet tags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
|
||||
this.tags = tags;
|
||||
return this;
|
||||
@ -236,11 +242,11 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_TAGS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setTags(List<Tag> tags) {
|
||||
public void setTags(@javax.annotation.Nullable List<Tag> tags) {
|
||||
this.tags = tags;
|
||||
}
|
||||
|
||||
public Pet status(StatusEnum status) {
|
||||
public Pet status(@javax.annotation.Nullable StatusEnum status) {
|
||||
|
||||
this.status = status;
|
||||
return this;
|
||||
@ -261,7 +267,7 @@ public class Pet {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_STATUS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setStatus(StatusEnum status) {
|
||||
public void setStatus(@javax.annotation.Nullable StatusEnum status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
|
@ -36,6 +36,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
/**
|
||||
@ -76,12 +77,13 @@ public class Query {
|
||||
}
|
||||
|
||||
public static final String JSON_PROPERTY_OUTCOMES = "outcomes";
|
||||
@javax.annotation.Nullable
|
||||
protected List<OutcomesEnum> outcomes = new ArrayList<>(Arrays.asList(OutcomesEnum.SUCCESS, OutcomesEnum.FAILURE));
|
||||
|
||||
public Query() {
|
||||
}
|
||||
|
||||
public Query id(Long id) {
|
||||
public Query id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -102,11 +104,11 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Query outcomes(List<OutcomesEnum> outcomes) {
|
||||
public Query outcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
|
||||
this.outcomes = outcomes;
|
||||
return this;
|
||||
@ -135,7 +137,7 @@ public class Query {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_OUTCOMES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setOutcomes(List<OutcomesEnum> outcomes) {
|
||||
public void setOutcomes(@javax.annotation.Nullable List<OutcomesEnum> outcomes) {
|
||||
this.outcomes = outcomes;
|
||||
}
|
||||
|
||||
|
@ -33,15 +33,17 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
public Tag id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -62,11 +64,11 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Tag name(String name) {
|
||||
public Tag name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -87,7 +89,7 @@ public class Tag {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -33,12 +33,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public TestFormObjectMultipartRequestMarker() {
|
||||
}
|
||||
|
||||
public TestFormObjectMultipartRequestMarker name(String name) {
|
||||
public TestFormObjectMultipartRequestMarker name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -59,7 +60,7 @@ public class TestFormObjectMultipartRequestMarker {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -36,21 +36,25 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
private String color;
|
||||
|
||||
public static final String JSON_PROPERTY_ID = "id";
|
||||
@javax.annotation.Nullable
|
||||
private Long id;
|
||||
|
||||
public static final String JSON_PROPERTY_NAME = "name";
|
||||
@javax.annotation.Nullable
|
||||
private String name;
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(String size) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter size(@javax.annotation.Nullable String size) {
|
||||
|
||||
this.size = size;
|
||||
return this;
|
||||
@ -71,11 +75,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SIZE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSize(String size) {
|
||||
public void setSize(@javax.annotation.Nullable String size) {
|
||||
this.size = size;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(String color) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -96,11 +100,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(Long id) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter id(@javax.annotation.Nullable Long id) {
|
||||
|
||||
this.id = id;
|
||||
return this;
|
||||
@ -121,11 +125,11 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ID)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(String name) {
|
||||
public TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter name(@javax.annotation.Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
@ -146,7 +150,7 @@ public class TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
@ -36,12 +36,13 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||
@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<String> values;
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter() {
|
||||
}
|
||||
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(List<String> values) {
|
||||
public TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter values(@javax.annotation.Nullable List<String> values) {
|
||||
|
||||
this.values = values;
|
||||
return this;
|
||||
@ -70,7 +71,7 @@ public class TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_VALUES)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setValues(List<String> values) {
|
||||
public void setValues(@javax.annotation.Nullable List<String> values) {
|
||||
this.values = values;
|
||||
}
|
||||
|
||||
|
@ -54,12 +54,13 @@ import org.openapitools.client.JSON;
|
||||
public class OneOf1 {
|
||||
public static final String SERIALIZED_NAME_MESSAGE1 = "message1";
|
||||
@SerializedName(SERIALIZED_NAME_MESSAGE1)
|
||||
@javax.annotation.Nullable
|
||||
private String message1;
|
||||
|
||||
public OneOf1() {
|
||||
}
|
||||
|
||||
public OneOf1 message1(String message1) {
|
||||
public OneOf1 message1(@javax.annotation.Nullable String message1) {
|
||||
this.message1 = message1;
|
||||
return this;
|
||||
}
|
||||
@ -74,7 +75,7 @@ public class OneOf1 {
|
||||
return message1;
|
||||
}
|
||||
|
||||
public void setMessage1(String message1) {
|
||||
public void setMessage1(@javax.annotation.Nullable String message1) {
|
||||
this.message1 = message1;
|
||||
}
|
||||
|
||||
|
@ -105,28 +105,33 @@ public class SomeObj implements Serializable {
|
||||
|
||||
public static final String SERIALIZED_NAME_$_TYPE = "$_type";
|
||||
@SerializedName(SERIALIZED_NAME_$_TYPE)
|
||||
@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;
|
||||
|
||||
public static final String SERIALIZED_NAME_NAME = "name";
|
||||
@SerializedName(SERIALIZED_NAME_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;
|
||||
|
||||
public static final String SERIALIZED_NAME_TYPE = "type";
|
||||
@SerializedName(SERIALIZED_NAME_TYPE)
|
||||
@javax.annotation.Nullable
|
||||
private String type;
|
||||
|
||||
public SomeObj() {
|
||||
}
|
||||
|
||||
public SomeObj $type(TypeEnum $type) {
|
||||
public SomeObj $type(@javax.annotation.Nullable TypeEnum $type) {
|
||||
this.$type = $type;
|
||||
return this;
|
||||
}
|
||||
@ -140,12 +145,12 @@ public class SomeObj implements Serializable {
|
||||
return $type;
|
||||
}
|
||||
|
||||
public void set$Type(TypeEnum $type) {
|
||||
public void set$Type(@javax.annotation.Nullable TypeEnum $type) {
|
||||
this.$type = $type;
|
||||
}
|
||||
|
||||
|
||||
public SomeObj id(Long id) {
|
||||
public SomeObj id(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@ -159,12 +164,12 @@ public class SomeObj implements Serializable {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
public void setId(@javax.annotation.Nullable Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
|
||||
public SomeObj name(String name) {
|
||||
public SomeObj name(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@ -178,12 +183,12 @@ public class SomeObj implements Serializable {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
public void setName(@javax.annotation.Nullable String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
|
||||
public SomeObj active(Boolean active) {
|
||||
public SomeObj active(@javax.annotation.Nullable Boolean active) {
|
||||
this.active = active;
|
||||
return this;
|
||||
}
|
||||
@ -197,12 +202,12 @@ public class SomeObj implements Serializable {
|
||||
return active;
|
||||
}
|
||||
|
||||
public void setActive(Boolean active) {
|
||||
public void setActive(@javax.annotation.Nullable Boolean active) {
|
||||
this.active = active;
|
||||
}
|
||||
|
||||
|
||||
public SomeObj type(String type) {
|
||||
public SomeObj type(@javax.annotation.Nullable String type) {
|
||||
this.type = type;
|
||||
return this;
|
||||
}
|
||||
@ -216,7 +221,7 @@ public class SomeObj implements Serializable {
|
||||
return type;
|
||||
}
|
||||
|
||||
public void setType(String type) {
|
||||
public void setType(@javax.annotation.Nullable String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
@ -38,15 +38,17 @@ import java.util.StringJoiner;
|
||||
@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<String, String> mapProperty = new HashMap<>();
|
||||
|
||||
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
|
||||
@javax.annotation.Nullable
|
||||
private Map<String, Map<String, String>> mapOfMapProperty = new HashMap<>();
|
||||
|
||||
public AdditionalPropertiesClass() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {
|
||||
public AdditionalPropertiesClass mapProperty(@javax.annotation.Nullable Map<String, String> mapProperty) {
|
||||
|
||||
this.mapProperty = mapProperty;
|
||||
return this;
|
||||
@ -75,11 +77,11 @@ public class AdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setMapProperty(Map<String, String> mapProperty) {
|
||||
public void setMapProperty(@javax.annotation.Nullable Map<String, String> mapProperty) {
|
||||
this.mapProperty = mapProperty;
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass mapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||
public AdditionalPropertiesClass mapOfMapProperty(@javax.annotation.Nullable Map<String, Map<String, String>> mapOfMapProperty) {
|
||||
|
||||
this.mapOfMapProperty = mapOfMapProperty;
|
||||
return this;
|
||||
@ -108,7 +110,7 @@ public class AdditionalPropertiesClass {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_MAP_OF_MAP_PROPERTY)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setMapOfMapProperty(Map<String, Map<String, String>> mapOfMapProperty) {
|
||||
public void setMapOfMapProperty(@javax.annotation.Nullable Map<String, Map<String, String>> mapOfMapProperty) {
|
||||
this.mapOfMapProperty = mapOfMapProperty;
|
||||
}
|
||||
|
||||
|
@ -37,15 +37,17 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_SINGLE_REF_TYPE = "SingleRefType";
|
||||
@javax.annotation.Nullable
|
||||
private SingleRefType singleRefType;
|
||||
|
||||
public AllOfWithSingleRef() {
|
||||
}
|
||||
|
||||
public AllOfWithSingleRef username(String username) {
|
||||
public AllOfWithSingleRef username(@javax.annotation.Nullable String username) {
|
||||
|
||||
this.username = username;
|
||||
return this;
|
||||
@ -66,11 +68,11 @@ public class AllOfWithSingleRef {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_USERNAME)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setUsername(String username) {
|
||||
public void setUsername(@javax.annotation.Nullable String username) {
|
||||
this.username = username;
|
||||
}
|
||||
|
||||
public AllOfWithSingleRef singleRefType(SingleRefType singleRefType) {
|
||||
public AllOfWithSingleRef singleRefType(@javax.annotation.Nullable SingleRefType singleRefType) {
|
||||
|
||||
this.singleRefType = singleRefType;
|
||||
return this;
|
||||
@ -91,7 +93,7 @@ public class AllOfWithSingleRef {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SINGLE_REF_TYPE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSingleRefType(SingleRefType singleRefType) {
|
||||
public void setSingleRefType(@javax.annotation.Nullable SingleRefType singleRefType) {
|
||||
this.singleRefType = singleRefType;
|
||||
}
|
||||
|
||||
|
@ -49,15 +49,17 @@ import java.util.StringJoiner;
|
||||
|
||||
public class Animal {
|
||||
public static final String JSON_PROPERTY_CLASS_NAME = "className";
|
||||
@javax.annotation.Nonnull
|
||||
protected String className;
|
||||
|
||||
public static final String JSON_PROPERTY_COLOR = "color";
|
||||
@javax.annotation.Nullable
|
||||
protected String color = "red";
|
||||
|
||||
public Animal() {
|
||||
}
|
||||
|
||||
public Animal className(String className) {
|
||||
public Animal className(@javax.annotation.Nonnull String className) {
|
||||
|
||||
this.className = className;
|
||||
return this;
|
||||
@ -78,11 +80,11 @@ public class Animal {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CLASS_NAME)
|
||||
@JsonInclude(value = JsonInclude.Include.ALWAYS)
|
||||
public void setClassName(String className) {
|
||||
public void setClassName(@javax.annotation.Nonnull String className) {
|
||||
this.className = className;
|
||||
}
|
||||
|
||||
public Animal color(String color) {
|
||||
public Animal color(@javax.annotation.Nullable String color) {
|
||||
|
||||
this.color = color;
|
||||
return this;
|
||||
@ -103,7 +105,7 @@ public class Animal {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_COLOR)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setColor(String color) {
|
||||
public void setColor(@javax.annotation.Nullable String color) {
|
||||
this.color = color;
|
||||
}
|
||||
|
||||
|
@ -39,12 +39,13 @@ import java.util.StringJoiner;
|
||||
@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<List<BigDecimal>> arrayArrayNumber = new ArrayList<>();
|
||||
|
||||
public ArrayOfArrayOfNumberOnly() {
|
||||
}
|
||||
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
public ArrayOfArrayOfNumberOnly arrayArrayNumber(@javax.annotation.Nullable List<List<BigDecimal>> arrayArrayNumber) {
|
||||
|
||||
this.arrayArrayNumber = arrayArrayNumber;
|
||||
return this;
|
||||
@ -73,7 +74,7 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {
|
||||
public void setArrayArrayNumber(@javax.annotation.Nullable List<List<BigDecimal>> arrayArrayNumber) {
|
||||
this.arrayArrayNumber = arrayArrayNumber;
|
||||
}
|
||||
|
||||
|
@ -39,12 +39,13 @@ import java.util.StringJoiner;
|
||||
@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<BigDecimal> arrayNumber = new ArrayList<>();
|
||||
|
||||
public ArrayOfNumberOnly() {
|
||||
}
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
public ArrayOfNumberOnly arrayNumber(@javax.annotation.Nullable List<BigDecimal> arrayNumber) {
|
||||
|
||||
this.arrayNumber = arrayNumber;
|
||||
return this;
|
||||
@ -73,7 +74,7 @@ public class ArrayOfNumberOnly {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_NUMBER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayNumber(List<BigDecimal> arrayNumber) {
|
||||
public void setArrayNumber(@javax.annotation.Nullable List<BigDecimal> arrayNumber) {
|
||||
this.arrayNumber = arrayNumber;
|
||||
}
|
||||
|
||||
|
@ -41,18 +41,21 @@ import java.util.StringJoiner;
|
||||
@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<String> arrayOfString = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER = "array_array_of_integer";
|
||||
@javax.annotation.Nullable
|
||||
private List<List<Long>> arrayArrayOfInteger = new ArrayList<>();
|
||||
|
||||
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
|
||||
@javax.annotation.Nullable
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = new ArrayList<>();
|
||||
|
||||
public ArrayTest() {
|
||||
}
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
public ArrayTest arrayOfString(@javax.annotation.Nullable List<String> arrayOfString) {
|
||||
|
||||
this.arrayOfString = arrayOfString;
|
||||
return this;
|
||||
@ -81,11 +84,11 @@ public class ArrayTest {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_OF_STRING)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayOfString(List<String> arrayOfString) {
|
||||
public void setArrayOfString(@javax.annotation.Nullable List<String> arrayOfString) {
|
||||
this.arrayOfString = arrayOfString;
|
||||
}
|
||||
|
||||
public ArrayTest arrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||
public ArrayTest arrayArrayOfInteger(@javax.annotation.Nullable List<List<Long>> arrayArrayOfInteger) {
|
||||
|
||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||
return this;
|
||||
@ -114,11 +117,11 @@ public class ArrayTest {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_INTEGER)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayArrayOfInteger(List<List<Long>> arrayArrayOfInteger) {
|
||||
public void setArrayArrayOfInteger(@javax.annotation.Nullable List<List<Long>> arrayArrayOfInteger) {
|
||||
this.arrayArrayOfInteger = arrayArrayOfInteger;
|
||||
}
|
||||
|
||||
public ArrayTest arrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
public ArrayTest arrayArrayOfModel(@javax.annotation.Nullable List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
|
||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||
return this;
|
||||
@ -147,7 +150,7 @@ public class ArrayTest {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setArrayArrayOfModel(List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
public void setArrayArrayOfModel(@javax.annotation.Nullable List<List<ReadOnlyFirst>> arrayArrayOfModel) {
|
||||
this.arrayArrayOfModel = arrayArrayOfModel;
|
||||
}
|
||||
|
||||
|
@ -40,27 +40,33 @@ import java.util.StringJoiner;
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_CAPITAL_CAMEL = "CapitalCamel";
|
||||
@javax.annotation.Nullable
|
||||
private String capitalCamel;
|
||||
|
||||
public static final String JSON_PROPERTY_SMALL_SNAKE = "small_Snake";
|
||||
@javax.annotation.Nullable
|
||||
private String smallSnake;
|
||||
|
||||
public static final String JSON_PROPERTY_CAPITAL_SNAKE = "Capital_Snake";
|
||||
@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;
|
||||
|
||||
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
|
||||
@javax.annotation.Nullable
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization() {
|
||||
}
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
public Capitalization smallCamel(@javax.annotation.Nullable String smallCamel) {
|
||||
|
||||
this.smallCamel = smallCamel;
|
||||
return this;
|
||||
@ -81,11 +87,11 @@ public class Capitalization {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_CAMEL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSmallCamel(String smallCamel) {
|
||||
public void setSmallCamel(@javax.annotation.Nullable String smallCamel) {
|
||||
this.smallCamel = smallCamel;
|
||||
}
|
||||
|
||||
public Capitalization capitalCamel(String capitalCamel) {
|
||||
public Capitalization capitalCamel(@javax.annotation.Nullable String capitalCamel) {
|
||||
|
||||
this.capitalCamel = capitalCamel;
|
||||
return this;
|
||||
@ -106,11 +112,11 @@ public class Capitalization {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_CAMEL)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setCapitalCamel(String capitalCamel) {
|
||||
public void setCapitalCamel(@javax.annotation.Nullable String capitalCamel) {
|
||||
this.capitalCamel = capitalCamel;
|
||||
}
|
||||
|
||||
public Capitalization smallSnake(String smallSnake) {
|
||||
public Capitalization smallSnake(@javax.annotation.Nullable String smallSnake) {
|
||||
|
||||
this.smallSnake = smallSnake;
|
||||
return this;
|
||||
@ -131,11 +137,11 @@ public class Capitalization {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SMALL_SNAKE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setSmallSnake(String smallSnake) {
|
||||
public void setSmallSnake(@javax.annotation.Nullable String smallSnake) {
|
||||
this.smallSnake = smallSnake;
|
||||
}
|
||||
|
||||
public Capitalization capitalSnake(String capitalSnake) {
|
||||
public Capitalization capitalSnake(@javax.annotation.Nullable String capitalSnake) {
|
||||
|
||||
this.capitalSnake = capitalSnake;
|
||||
return this;
|
||||
@ -156,11 +162,11 @@ public class Capitalization {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_CAPITAL_SNAKE)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setCapitalSnake(String capitalSnake) {
|
||||
public void setCapitalSnake(@javax.annotation.Nullable String capitalSnake) {
|
||||
this.capitalSnake = capitalSnake;
|
||||
}
|
||||
|
||||
public Capitalization scAETHFlowPoints(String scAETHFlowPoints) {
|
||||
public Capitalization scAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) {
|
||||
|
||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
||||
return this;
|
||||
@ -181,11 +187,11 @@ public class Capitalization {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_SC_A_E_T_H_FLOW_POINTS)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setScAETHFlowPoints(String scAETHFlowPoints) {
|
||||
public void setScAETHFlowPoints(@javax.annotation.Nullable String scAETHFlowPoints) {
|
||||
this.scAETHFlowPoints = scAETHFlowPoints;
|
||||
}
|
||||
|
||||
public Capitalization ATT_NAME(String ATT_NAME) {
|
||||
public Capitalization ATT_NAME(@javax.annotation.Nullable String ATT_NAME) {
|
||||
|
||||
this.ATT_NAME = ATT_NAME;
|
||||
return this;
|
||||
@ -206,7 +212,7 @@ public class Capitalization {
|
||||
|
||||
@JsonProperty(JSON_PROPERTY_A_T_T_N_A_M_E)
|
||||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
|
||||
public void setATTNAME(String ATT_NAME) {
|
||||
public void setATTNAME(@javax.annotation.Nullable String ATT_NAME) {
|
||||
this.ATT_NAME = ATT_NAME;
|
||||
}
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user