diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache index 5c080b263977..adc3ebe82e81 100644 --- a/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache +++ b/modules/openapi-generator/src/main/resources/JavaSpring/pojo.mustache @@ -269,7 +269,7 @@ public {{>sealed}}class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}} {{^lombok.Setter}} {{! begin feature: fluent setter methods for inherited properties }} - public {{classname}} {{name}}({{{datatypeWithEnum}}} {{name}}) { + public {{classname}} {{name}}({{>nullableArgument_chainSetter}} {{name}}) { super.{{name}}({{name}}); return this; } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java index b63c0ab7dca8..7846f0acbb59 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/spring/SpringCodegenTest.java @@ -8415,6 +8415,37 @@ public void testJspecify_useOptional(String library, int springBootVersion, bool } } + @Test(dataProvider = "jspecifyLibraries") + public void testJspecify_inheritedFluentSettersKeepNullable(String library, int springBootVersion) throws IOException { + // https://github.com/OpenAPITools/openapi-generator/issues/25831 + String springVersionProperty = springBootVersion == 4? USE_SPRING_BOOT4: USE_SPRING_BOOT3; + final Map files = generateFromContract("src/test/resources/3_0/java/jspecify-allof-inherited-setters.yaml", library, + Map.of(USE_JSPECIFY, true, + SpringCodegen.OPENAPI_NULLABLE, false, + INTERFACE_ONLY, true, + springVersionProperty, springBootVersion > 2, + USE_JAKARTA_EE, springBootVersion > 2 + ), + codegenConfigurator -> + codegenConfigurator + .addTypeMapping("OffsetDateTime", "java.time.Instant")); + + JavaFileAssert.assertThat(files.get("Base.java")) + .fileContains( + "public Base kind(String kind) {", + "public Base description(@Nullable String description) {", + "public Base createdAt(java.time.@Nullable Instant createdAt) {"); + JavaFileAssert.assertThat(files.get("Child.java")) + .assertTypeAnnotations().doesImportAnnotation("org.jspecify.annotations.Nullable").toType() + .fileContains( + "public Child kind(String kind) {", + "public Child description(@Nullable String description) {", + "public Child createdAt(java.time.@Nullable Instant createdAt) {") + .fileDoesNotContain( + "public Child description(String description) {", + "public Child createdAt(java.time.Instant createdAt) {"); + } + // ------------------------------------------------------------------------- // autoXSpringPaginated tests // ------------------------------------------------------------------------- diff --git a/modules/openapi-generator/src/test/resources/3_0/java/jspecify-allof-inherited-setters.yaml b/modules/openapi-generator/src/test/resources/3_0/java/jspecify-allof-inherited-setters.yaml new file mode 100644 index 000000000000..a9269e02f035 --- /dev/null +++ b/modules/openapi-generator/src/test/resources/3_0/java/jspecify-allof-inherited-setters.yaml @@ -0,0 +1,29 @@ +openapi: 3.0.3 +info: + title: jspecify inherited fluent setters + version: 1.0.0 +paths: {} +components: + schemas: + Base: + type: object + required: + - kind + properties: + kind: + type: string + description: + type: string + nullable: true + createdAt: + type: string + format: date-time + discriminator: + propertyName: kind + Child: + allOf: + - $ref: '#/components/schemas/Base' + - type: object + properties: + extra: + type: string diff --git a/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/BigCatDto.java b/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/BigCatDto.java index 515605e98e9c..421936a245a9 100644 --- a/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/BigCatDto.java @@ -94,7 +94,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCatDto declawed(Boolean declawed) { + public BigCatDto declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/ChildWithNullableDto.java index 8177066ed7e0..f410466024f4 100644 --- a/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface-bean-validation/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullableDto type(TypeEnum type) { + public ChildWithNullableDto type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java index 57573101c8d3..4093cdb1df3e 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/BigCatDto.java @@ -91,7 +91,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCatDto declawed(Boolean declawed) { + public BigCatDto declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java index f68dd90935b5..d508cfdfe29e 100644 --- a/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -50,7 +50,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullableDto type(TypeEnum type) { + public ChildWithNullableDto type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/BigCat.java index f5903a4cddc4..82dd1096202e 100644 --- a/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/BigCat.java @@ -99,7 +99,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/ChildWithNullable.java index 542ec0fedb7e..33263114c9e4 100644 --- a/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive-bean-validation/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -51,7 +51,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java index 54a41a1a2eae..3f4488647926 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java @@ -96,7 +96,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java index 7cb0f5f17e39..a56fe2d65f62 100644 --- a/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -48,7 +48,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java index 54a41a1a2eae..3f4488647926 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -96,7 +96,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java index 7cb0f5f17e39..a56fe2d65f62 100644 --- a/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/client/petstore/spring-http-interface-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -48,7 +48,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/BigCatDto.java b/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/BigCatDto.java index 5ef3427e27b3..72c81fe4dd1c 100644 --- a/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/BigCatDto.java @@ -98,7 +98,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCatDto declawed(Boolean declawed) { + public BigCatDto declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/ChildWithNullableDto.java index fbd8b2b5ef4e..7a623030d9c2 100644 --- a/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface-springboot-4/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -55,12 +55,12 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullableDto type(TypeEnum type) { + public ChildWithNullableDto type(@Nullable TypeEnum type) { super.type(type); return this; } - public ChildWithNullableDto nullableProperty(String nullableProperty) { + public ChildWithNullableDto nullableProperty(@Nullable String nullableProperty) { super.nullableProperty(nullableProperty); return this; } diff --git a/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/BigCat.java b/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/BigCat.java index 540390c1793f..919bc3f3c26f 100644 --- a/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/BigCat.java @@ -100,7 +100,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/ChildWithNullable.java index f1c02130441c..0985a4d324ca 100644 --- a/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/client/petstore/spring-http-interface-useHttpServiceProxyFactoryInterfacesConfigurator/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -52,7 +52,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java index 57573101c8d3..4093cdb1df3e 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/BigCatDto.java @@ -91,7 +91,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCatDto declawed(Boolean declawed) { + public BigCatDto declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java index f68dd90935b5..d508cfdfe29e 100644 --- a/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/client/petstore/spring-http-interface/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -50,7 +50,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullableDto type(TypeEnum type) { + public ChildWithNullableDto type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java index f1f3662610a8..f4e1eab0da4f 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/BigCat.java @@ -94,7 +94,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Bar.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Bar.java index e7b59c5883c8..d073e8b1a19d 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Bar.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Bar.java @@ -135,17 +135,17 @@ public void setFoo(@Nullable FooRefOrValue foo) { } - public Bar href(String href) { + public Bar href(@Nullable String href) { super.href(href); return this; } - public Bar atSchemaLocation(String atSchemaLocation) { + public Bar atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Bar atBaseType(String atBaseType) { + public Bar atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarCreate.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarCreate.java index fbf6a4a7b0e6..cb46da344863 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarCreate.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarCreate.java @@ -112,22 +112,22 @@ public void setFoo(@Nullable FooRefOrValue foo) { } - public BarCreate href(String href) { + public BarCreate href(@Nullable String href) { super.href(href); return this; } - public BarCreate id(String id) { + public BarCreate id(@Nullable String id) { super.id(id); return this; } - public BarCreate atSchemaLocation(String atSchemaLocation) { + public BarCreate atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public BarCreate atBaseType(String atBaseType) { + public BarCreate atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarRef.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarRef.java index d10eb036a47b..b184b11e4b30 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/BarRef.java @@ -37,22 +37,22 @@ public BarRef(String atType) { } - public BarRef href(String href) { + public BarRef href(@Nullable String href) { super.href(href); return this; } - public BarRef id(String id) { + public BarRef id(@Nullable String id) { super.id(id); return this; } - public BarRef atSchemaLocation(String atSchemaLocation) { + public BarRef atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public BarRef atBaseType(String atBaseType) { + public BarRef atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } @@ -62,12 +62,12 @@ public BarRef atType(String atType) { return this; } - public BarRef name(String name) { + public BarRef name(@Nullable String name) { super.name(name); return this; } - public BarRef atReferredType(String atReferredType) { + public BarRef atReferredType(@Nullable String atReferredType) { super.atReferredType(atReferredType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Foo.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Foo.java index 9fb02eff0d47..7715eaca2eed 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Foo.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Foo.java @@ -85,22 +85,22 @@ public void setFooPropB(@Nullable String fooPropB) { } - public Foo href(String href) { + public Foo href(@Nullable String href) { super.href(href); return this; } - public Foo id(String id) { + public Foo id(@Nullable String id) { super.id(id); return this; } - public Foo atSchemaLocation(String atSchemaLocation) { + public Foo atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Foo atBaseType(String atBaseType) { + public Foo atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/FooRef.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/FooRef.java index 1747eae574f8..485416987a61 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/FooRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/FooRef.java @@ -61,22 +61,22 @@ public void setFoorefPropA(@Nullable String foorefPropA) { } - public FooRef href(String href) { + public FooRef href(@Nullable String href) { super.href(href); return this; } - public FooRef id(String id) { + public FooRef id(@Nullable String id) { super.id(id); return this; } - public FooRef atSchemaLocation(String atSchemaLocation) { + public FooRef atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public FooRef atBaseType(String atBaseType) { + public FooRef atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } @@ -86,12 +86,12 @@ public FooRef atType(String atType) { return this; } - public FooRef name(String name) { + public FooRef name(@Nullable String name) { super.name(name); return this; } - public FooRef atReferredType(String atReferredType) { + public FooRef atReferredType(@Nullable String atReferredType) { super.atReferredType(atReferredType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pasta.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pasta.java index 3231ecf8241b..9df59f907ed4 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pasta.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pasta.java @@ -61,22 +61,22 @@ public void setVendor(@Nullable String vendor) { } - public Pasta href(String href) { + public Pasta href(@Nullable String href) { super.href(href); return this; } - public Pasta id(String id) { + public Pasta id(@Nullable String id) { super.id(id); return this; } - public Pasta atSchemaLocation(String atSchemaLocation) { + public Pasta atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Pasta atBaseType(String atBaseType) { + public Pasta atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pizza.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pizza.java index 3caa5180b420..d1574fcb9709 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pizza.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/Pizza.java @@ -70,22 +70,22 @@ public void setPizzaSize(@Nullable BigDecimal pizzaSize) { } - public Pizza href(String href) { + public Pizza href(@Nullable String href) { super.href(href); return this; } - public Pizza id(String id) { + public Pizza id(@Nullable String id) { super.id(id); return this; } - public Pizza atSchemaLocation(String atSchemaLocation) { + public Pizza atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Pizza atBaseType(String atBaseType) { + public Pizza atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/PizzaSpeziale.java b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/PizzaSpeziale.java index 526be456135f..d724688c1084 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/PizzaSpeziale.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-interface/src/main/java/org/openapitools/model/PizzaSpeziale.java @@ -62,27 +62,27 @@ public void setToppings(@Nullable String toppings) { } - public PizzaSpeziale pizzaSize(BigDecimal pizzaSize) { + public PizzaSpeziale pizzaSize(@Nullable BigDecimal pizzaSize) { super.pizzaSize(pizzaSize); return this; } - public PizzaSpeziale href(String href) { + public PizzaSpeziale href(@Nullable String href) { super.href(href); return this; } - public PizzaSpeziale id(String id) { + public PizzaSpeziale id(@Nullable String id) { super.id(id); return this; } - public PizzaSpeziale atSchemaLocation(String atSchemaLocation) { + public PizzaSpeziale atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public PizzaSpeziale atBaseType(String atBaseType) { + public PizzaSpeziale atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Bar.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Bar.java index 2749f9dabb96..7d1c3253585b 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Bar.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Bar.java @@ -135,17 +135,17 @@ public void setFoo(@Nullable FooRefOrValue foo) { } - public Bar href(String href) { + public Bar href(@Nullable String href) { super.href(href); return this; } - public Bar atSchemaLocation(String atSchemaLocation) { + public Bar atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Bar atBaseType(String atBaseType) { + public Bar atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarCreate.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarCreate.java index a7c6d3bdbf7d..2c53059c0f76 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarCreate.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarCreate.java @@ -112,22 +112,22 @@ public void setFoo(@Nullable FooRefOrValue foo) { } - public BarCreate href(String href) { + public BarCreate href(@Nullable String href) { super.href(href); return this; } - public BarCreate id(String id) { + public BarCreate id(@Nullable String id) { super.id(id); return this; } - public BarCreate atSchemaLocation(String atSchemaLocation) { + public BarCreate atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public BarCreate atBaseType(String atBaseType) { + public BarCreate atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarRef.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarRef.java index 0268e44c75bd..f96ddbf297be 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/BarRef.java @@ -37,22 +37,22 @@ public BarRef(String atType) { } - public BarRef href(String href) { + public BarRef href(@Nullable String href) { super.href(href); return this; } - public BarRef id(String id) { + public BarRef id(@Nullable String id) { super.id(id); return this; } - public BarRef atSchemaLocation(String atSchemaLocation) { + public BarRef atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public BarRef atBaseType(String atBaseType) { + public BarRef atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } @@ -62,12 +62,12 @@ public BarRef atType(String atType) { return this; } - public BarRef name(String name) { + public BarRef name(@Nullable String name) { super.name(name); return this; } - public BarRef atReferredType(String atReferredType) { + public BarRef atReferredType(@Nullable String atReferredType) { super.atReferredType(atReferredType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Foo.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Foo.java index 5b78dce2e4c7..2df8d2e38853 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Foo.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Foo.java @@ -85,22 +85,22 @@ public void setFooPropB(@Nullable String fooPropB) { } - public Foo href(String href) { + public Foo href(@Nullable String href) { super.href(href); return this; } - public Foo id(String id) { + public Foo id(@Nullable String id) { super.id(id); return this; } - public Foo atSchemaLocation(String atSchemaLocation) { + public Foo atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Foo atBaseType(String atBaseType) { + public Foo atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/FooRef.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/FooRef.java index bc403df0102f..220d3ff443f7 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/FooRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/FooRef.java @@ -61,22 +61,22 @@ public void setFoorefPropA(@Nullable String foorefPropA) { } - public FooRef href(String href) { + public FooRef href(@Nullable String href) { super.href(href); return this; } - public FooRef id(String id) { + public FooRef id(@Nullable String id) { super.id(id); return this; } - public FooRef atSchemaLocation(String atSchemaLocation) { + public FooRef atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public FooRef atBaseType(String atBaseType) { + public FooRef atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } @@ -86,12 +86,12 @@ public FooRef atType(String atType) { return this; } - public FooRef name(String name) { + public FooRef name(@Nullable String name) { super.name(name); return this; } - public FooRef atReferredType(String atReferredType) { + public FooRef atReferredType(@Nullable String atReferredType) { super.atReferredType(atReferredType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pasta.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pasta.java index 81dbd2bee508..9ccc91d89292 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pasta.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pasta.java @@ -61,22 +61,22 @@ public void setVendor(@Nullable String vendor) { } - public Pasta href(String href) { + public Pasta href(@Nullable String href) { super.href(href); return this; } - public Pasta id(String id) { + public Pasta id(@Nullable String id) { super.id(id); return this; } - public Pasta atSchemaLocation(String atSchemaLocation) { + public Pasta atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Pasta atBaseType(String atBaseType) { + public Pasta atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pizza.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pizza.java index 23e267805da3..1ecaac8014eb 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pizza.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/Pizza.java @@ -70,22 +70,22 @@ public void setPizzaSize(@Nullable BigDecimal pizzaSize) { } - public Pizza href(String href) { + public Pizza href(@Nullable String href) { super.href(href); return this; } - public Pizza id(String id) { + public Pizza id(@Nullable String id) { super.id(id); return this; } - public Pizza atSchemaLocation(String atSchemaLocation) { + public Pizza atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Pizza atBaseType(String atBaseType) { + public Pizza atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/PizzaSpeziale.java b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/PizzaSpeziale.java index f72d9fc3c076..5cef4fad9784 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/PizzaSpeziale.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof-sealed/src/main/java/org/openapitools/model/PizzaSpeziale.java @@ -62,27 +62,27 @@ public void setToppings(@Nullable String toppings) { } - public PizzaSpeziale pizzaSize(BigDecimal pizzaSize) { + public PizzaSpeziale pizzaSize(@Nullable BigDecimal pizzaSize) { super.pizzaSize(pizzaSize); return this; } - public PizzaSpeziale href(String href) { + public PizzaSpeziale href(@Nullable String href) { super.href(href); return this; } - public PizzaSpeziale id(String id) { + public PizzaSpeziale id(@Nullable String id) { super.id(id); return this; } - public PizzaSpeziale atSchemaLocation(String atSchemaLocation) { + public PizzaSpeziale atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public PizzaSpeziale atBaseType(String atBaseType) { + public PizzaSpeziale atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java index eddfe0c2c494..db2e0b5d2153 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Bar.java @@ -135,17 +135,17 @@ public void setFoo(@Nullable FooRefOrValue foo) { } - public Bar href(String href) { + public Bar href(@Nullable String href) { super.href(href); return this; } - public Bar atSchemaLocation(String atSchemaLocation) { + public Bar atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Bar atBaseType(String atBaseType) { + public Bar atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java index f2b1fb9ec266..1d1a5b7f540f 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarCreate.java @@ -112,22 +112,22 @@ public void setFoo(@Nullable FooRefOrValue foo) { } - public BarCreate href(String href) { + public BarCreate href(@Nullable String href) { super.href(href); return this; } - public BarCreate id(String id) { + public BarCreate id(@Nullable String id) { super.id(id); return this; } - public BarCreate atSchemaLocation(String atSchemaLocation) { + public BarCreate atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public BarCreate atBaseType(String atBaseType) { + public BarCreate atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarRef.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarRef.java index a93228ba3e36..832d7f8bb564 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/BarRef.java @@ -37,22 +37,22 @@ public BarRef(String atType) { } - public BarRef href(String href) { + public BarRef href(@Nullable String href) { super.href(href); return this; } - public BarRef id(String id) { + public BarRef id(@Nullable String id) { super.id(id); return this; } - public BarRef atSchemaLocation(String atSchemaLocation) { + public BarRef atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public BarRef atBaseType(String atBaseType) { + public BarRef atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } @@ -62,12 +62,12 @@ public BarRef atType(String atType) { return this; } - public BarRef name(String name) { + public BarRef name(@Nullable String name) { super.name(name); return this; } - public BarRef atReferredType(String atReferredType) { + public BarRef atReferredType(@Nullable String atReferredType) { super.atReferredType(atReferredType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java index 372b35345ceb..988ca0c3d1f5 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Foo.java @@ -85,22 +85,22 @@ public void setFooPropB(@Nullable String fooPropB) { } - public Foo href(String href) { + public Foo href(@Nullable String href) { super.href(href); return this; } - public Foo id(String id) { + public Foo id(@Nullable String id) { super.id(id); return this; } - public Foo atSchemaLocation(String atSchemaLocation) { + public Foo atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Foo atBaseType(String atBaseType) { + public Foo atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java index 7d4dddc15687..5603fb56f7b9 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/FooRef.java @@ -61,22 +61,22 @@ public void setFoorefPropA(@Nullable String foorefPropA) { } - public FooRef href(String href) { + public FooRef href(@Nullable String href) { super.href(href); return this; } - public FooRef id(String id) { + public FooRef id(@Nullable String id) { super.id(id); return this; } - public FooRef atSchemaLocation(String atSchemaLocation) { + public FooRef atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public FooRef atBaseType(String atBaseType) { + public FooRef atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } @@ -86,12 +86,12 @@ public FooRef atType(String atType) { return this; } - public FooRef name(String name) { + public FooRef name(@Nullable String name) { super.name(name); return this; } - public FooRef atReferredType(String atReferredType) { + public FooRef atReferredType(@Nullable String atReferredType) { super.atReferredType(atReferredType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java index ee5e54c0d21c..1b227a9b1624 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pasta.java @@ -61,22 +61,22 @@ public void setVendor(@Nullable String vendor) { } - public Pasta href(String href) { + public Pasta href(@Nullable String href) { super.href(href); return this; } - public Pasta id(String id) { + public Pasta id(@Nullable String id) { super.id(id); return this; } - public Pasta atSchemaLocation(String atSchemaLocation) { + public Pasta atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Pasta atBaseType(String atBaseType) { + public Pasta atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java index e815b3392d49..98866f7b1cff 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/Pizza.java @@ -70,22 +70,22 @@ public void setPizzaSize(@Nullable BigDecimal pizzaSize) { } - public Pizza href(String href) { + public Pizza href(@Nullable String href) { super.href(href); return this; } - public Pizza id(String id) { + public Pizza id(@Nullable String id) { super.id(id); return this; } - public Pizza atSchemaLocation(String atSchemaLocation) { + public Pizza atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public Pizza atBaseType(String atBaseType) { + public Pizza atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java index 8df07372bb73..f083889d9ab7 100644 --- a/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java +++ b/samples/openapi3/server/petstore/spring-boot-oneof/src/main/java/org/openapitools/model/PizzaSpeziale.java @@ -62,27 +62,27 @@ public void setToppings(@Nullable String toppings) { } - public PizzaSpeziale pizzaSize(BigDecimal pizzaSize) { + public PizzaSpeziale pizzaSize(@Nullable BigDecimal pizzaSize) { super.pizzaSize(pizzaSize); return this; } - public PizzaSpeziale href(String href) { + public PizzaSpeziale href(@Nullable String href) { super.href(href); return this; } - public PizzaSpeziale id(String id) { + public PizzaSpeziale id(@Nullable String id) { super.id(id); return this; } - public PizzaSpeziale atSchemaLocation(String atSchemaLocation) { + public PizzaSpeziale atSchemaLocation(@Nullable String atSchemaLocation) { super.atSchemaLocation(atSchemaLocation); return this; } - public PizzaSpeziale atBaseType(String atBaseType) { + public PizzaSpeziale atBaseType(@Nullable String atBaseType) { super.atBaseType(atBaseType); return this; } diff --git a/samples/openapi3/server/petstore/spring-boot-records/src/main/java/org/openapitools/model/Car.java b/samples/openapi3/server/petstore/spring-boot-records/src/main/java/org/openapitools/model/Car.java index c400394b84ef..d15b9d1530b3 100644 --- a/samples/openapi3/server/petstore/spring-boot-records/src/main/java/org/openapitools/model/Car.java +++ b/samples/openapi3/server/petstore/spring-boot-records/src/main/java/org/openapitools/model/Car.java @@ -66,7 +66,7 @@ public Car type(String type) { return this; } - public Car wheels(Integer wheels) { + public Car wheels(@Nullable Integer wheels) { super.wheels(wheels); return this; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/openapi3/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledExcp/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java index d6fdd2d90588..e15fa2929bbd 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/BigCat.java @@ -104,7 +104,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java index 32ab3afcb978..38d4be6081b1 100644 --- a/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -54,12 +54,12 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } - public ChildWithNullable nullableProperty(String nullableProperty) { + public ChildWithNullable nullableProperty(@Nullable String nullableProperty) { super.nullableProperty(nullableProperty); return this; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-beanvalidation/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-builtin-validation/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-delegate-j8/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java index b54fde027943..7c45887dc39e 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/BigCat.java @@ -109,7 +109,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java index 3589185b351a..7d5671b7fe8b 100644 --- a/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-delegate/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -65,7 +65,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java index 67ececcd6365..f20b73d156c3 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java index 69c7b51d240f..01b98173aeca 100644 --- a/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-implicitHeaders/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/BigCatDto.java b/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/BigCatDto.java index 45bbaf32d3b3..622534338077 100644 --- a/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/BigCatDto.java @@ -103,7 +103,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCatDto declawed(Boolean declawed) { + public BigCatDto declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/ChildWithNullableDto.java index abec16a095ea..ca2ca134c9d4 100644 --- a/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/server/petstore/springboot-include-http-request-context/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -55,7 +55,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullableDto type(TypeEnum type) { + public ChildWithNullableDto type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-reactive-noResponseEntity/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java index 920bf4b34262..3f6e044e7a4c 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java index 6aed03236732..faaf56435f97 100644 --- a/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-reactive/src/main/java/org/openapitools/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java index eace858428ca..2b6c2a17d4c6 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/BigCat.java @@ -101,7 +101,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCat declawed(Boolean declawed) { + public BigCat declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java index da3ea551b8ab..361b6ee0bfcc 100644 --- a/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java +++ b/samples/server/petstore/springboot-virtualan/src/main/java/org/openapitools/virtualan/model/ChildWithNullable.java @@ -53,7 +53,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullable type(TypeEnum type) { + public ChildWithNullable type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot-x-implements-skip/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/server/petstore/springboot-x-implements-skip/src/main/java/org/openapitools/model/ChildWithNullableDto.java index abec16a095ea..ca2ca134c9d4 100644 --- a/samples/server/petstore/springboot-x-implements-skip/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/server/petstore/springboot-x-implements-skip/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -55,7 +55,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullableDto type(TypeEnum type) { + public ChildWithNullableDto type(@Nullable TypeEnum type) { super.type(type); return this; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java index 3528d9db1247..80aeb8278955 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/BigCatDto.java @@ -104,7 +104,7 @@ public void setKind(@Nullable KindEnum kind) { } - public BigCatDto declawed(Boolean declawed) { + public BigCatDto declawed(@Nullable Boolean declawed) { super.declawed(declawed); return this; } diff --git a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java index a42aba2ef27d..87a33aaa4be3 100644 --- a/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java +++ b/samples/server/petstore/springboot/src/main/java/org/openapitools/model/ChildWithNullableDto.java @@ -55,7 +55,7 @@ public void setOtherProperty(@Nullable String otherProperty) { } - public ChildWithNullableDto type(TypeEnum type) { + public ChildWithNullableDto type(@Nullable TypeEnum type) { super.type(type); return this; }