mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-11 00:22:43 +00:00
[Java][client] make it possible to send explicit nulls for nullable fields (#3474)
* [Java][client] make it possible to send explicit nulls for nullable fields * Regenerate samples
This commit is contained in:
committed by
William Cheng
parent
cd9eea2fe5
commit
5182955cca
@@ -51,13 +51,13 @@ public class AdditionalPropertiesClass {
|
||||
private Map<String, Map<String, Object>> mapMapAnytype = null;
|
||||
|
||||
@JsonProperty("anytype_1")
|
||||
private Object anytype1 = null;
|
||||
private Object anytype1;
|
||||
|
||||
@JsonProperty("anytype_2")
|
||||
private Object anytype2 = null;
|
||||
private Object anytype2;
|
||||
|
||||
@JsonProperty("anytype_3")
|
||||
private Object anytype3 = null;
|
||||
private Object anytype3;
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
this.mapString = mapString;
|
||||
|
||||
@@ -17,7 +17,7 @@ import javax.validation.constraints.*;
|
||||
|
||||
public class FileSchemaTestClass {
|
||||
@JsonProperty("file")
|
||||
private java.io.File file = null;
|
||||
private java.io.File file;
|
||||
|
||||
@JsonProperty("files")
|
||||
@Valid
|
||||
|
||||
@@ -23,7 +23,7 @@ public class Pet {
|
||||
private Long id;
|
||||
|
||||
@JsonProperty("category")
|
||||
private Category category = null;
|
||||
private Category category;
|
||||
|
||||
@JsonProperty("name")
|
||||
private String name;
|
||||
|
||||
Reference in New Issue
Block a user