Manually add annotations since the remote pipeline insists that they should be there

This commit is contained in:
Mattias-Sehlstedt 2025-04-26 17:38:52 +02:00
parent 6f929fb7fe
commit a8b2adf5ba
6 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
public class Animal {
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@jakarta.annotation.Nonnull
protected String className;
public static final String JSON_PROPERTY_COLOR = "color";

View File

@ -83,6 +83,7 @@ public class ParentWithNullable {
}
public static final String JSON_PROPERTY_TYPE = "type";
@jakarta.annotation.Nullable
protected TypeEnum type;
public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty";

View File

@ -46,6 +46,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
public class Animal {
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@jakarta.annotation.Nonnull
protected String className;
public static final String JSON_PROPERTY_COLOR = "color";

View File

@ -82,6 +82,7 @@ public class ParentWithNullable {
}
public static final String JSON_PROPERTY_TYPE = "type";
@jakarta.annotation.Nullable
protected TypeEnum type;
public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty";

View File

@ -46,6 +46,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName;
public class Animal {
public static final String JSON_PROPERTY_CLASS_NAME = "className";
@jakarta.annotation.Nonnull
protected String className;
public static final String JSON_PROPERTY_COLOR = "color";

View File

@ -82,6 +82,7 @@ public class ParentWithNullable {
}
public static final String JSON_PROPERTY_TYPE = "type";
@jakarta.annotation.Nullable
protected TypeEnum type;
public static final String JSON_PROPERTY_NULLABLE_PROPERTY = "nullableProperty";