Skip to content

Commit dc529a0

Browse files
Update samples
1 parent fa963a5 commit dc529a0

File tree

24 files changed

+24
-24
lines changed

24 files changed

+24
-24
lines changed

samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Apple.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public final class Apple implements Fruit {
4141
private Integer seeds;
4242

4343
public static final String JSON_PROPERTY_FRUIT_TYPE = "fruitType";
44-
@javax.annotation.Nonnull
44+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
4545
private FruitType fruitType;
4646

4747
public Apple() {

samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Banana.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public final class Banana implements Fruit {
4141
private Integer length;
4242

4343
public static final String JSON_PROPERTY_FRUIT_TYPE = "fruitType";
44-
@javax.annotation.Nonnull
44+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
4545
private FruitType fruitType;
4646

4747
public Banana() {

samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/Entity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public class Entity {
7070
protected String atBaseType;
7171

7272
public static final String JSON_PROPERTY_AT_TYPE = "@type";
73-
@javax.annotation.Nonnull
73+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
7474
protected String atType;
7575

7676
public Entity() {

samples/client/others/java/webclient-sealedInterface/src/main/java/org/openapitools/client/model/EntityRef.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public class EntityRef {
7676
protected String atBaseType;
7777

7878
public static final String JSON_PROPERTY_AT_TYPE = "@type";
79-
@javax.annotation.Nonnull
79+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
8080
protected String atType;
8181

8282
public EntityRef() {

samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/Animal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949
public class Animal {
5050
public static final String JSON_PROPERTY_CLASS_NAME = "className";
51-
@jakarta.annotation.Nonnull
51+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
5252
protected String className;
5353

5454
public static final String JSON_PROPERTY_COLOR = "color";

samples/client/petstore/java/restclient-swagger2/src/main/java/org/openapitools/client/model/ParentWithNullable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static TypeEnum fromValue(String value) {
8484
}
8585

8686
public static final String JSON_PROPERTY_TYPE = "type";
87-
@jakarta.annotation.Nullable
87+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
8888
protected TypeEnum type;
8989

9090
public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty";

samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/Animal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
public class Animal {
4949
public static final String JSON_PROPERTY_CLASS_NAME = "className";
50-
@jakarta.annotation.Nonnull
50+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
5151
protected String className;
5252

5353
public static final String JSON_PROPERTY_COLOR = "color";

samples/client/petstore/java/restclient-useSingleRequestParameter-static/src/main/java/org/openapitools/client/model/ParentWithNullable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static TypeEnum fromValue(String value) {
8383
}
8484

8585
public static final String JSON_PROPERTY_TYPE = "type";
86-
@jakarta.annotation.Nullable
86+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
8787
protected TypeEnum type;
8888

8989
public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty";

samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/Animal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
public class Animal {
4949
public static final String JSON_PROPERTY_CLASS_NAME = "className";
50-
@jakarta.annotation.Nonnull
50+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
5151
protected String className;
5252

5353
public static final String JSON_PROPERTY_COLOR = "color";

samples/client/petstore/java/restclient-useSingleRequestParameter/src/main/java/org/openapitools/client/model/ParentWithNullable.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public static TypeEnum fromValue(String value) {
8383
}
8484

8585
public static final String JSON_PROPERTY_TYPE = "type";
86-
@jakarta.annotation.Nullable
86+
// The discriminator does not have Nullability-annotation since it is added during serialization by the @JsonTypeName annotation
8787
protected TypeEnum type;
8888

8989
public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty";

0 commit comments

Comments
 (0)