[Java] add jackson annotations to setters (#9041)

* [Java] add jackson annotations to setters

Closes #6856

* [Java] fix conflictiong setter with JsonNullable
This commit is contained in:
Jakob
2021-03-30 05:17:15 +02:00
committed by GitHub
parent becb424455
commit 0af45b3823
804 changed files with 5397 additions and 3 deletions

View File

@@ -70,6 +70,8 @@ public class ChildSchema extends Parent {
}
@JsonProperty(JSON_PROPERTY_PROP1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp1(String prop1) {
this.prop1 = prop1;
}

View File

@@ -59,6 +59,8 @@ public class ChildSchemaAllOf {
}
@JsonProperty(JSON_PROPERTY_PROP1)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp1(String prop1) {
this.prop1 = prop1;
}

View File

@@ -71,6 +71,8 @@ public class MySchemaNameCharacters extends Parent {
}
@JsonProperty(JSON_PROPERTY_PROP2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp2(String prop2) {
this.prop2 = prop2;
}

View File

@@ -59,6 +59,8 @@ public class MySchemaNameCharactersAllOf {
}
@JsonProperty(JSON_PROPERTY_PROP2)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setProp2(String prop2) {
this.prop2 = prop2;
}

View File

@@ -69,6 +69,8 @@ public class Parent {
}
@JsonProperty(JSON_PROPERTY_OBJECT_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setObjectType(String objectType) {
this.objectType = objectType;
}