forked from loafle/openapi-generator-original
[Spring] fix nullable map properties (#16524)
* fix map in spring generators * fix nullable map in spring generators
This commit is contained in:
parent
128d9da8a1
commit
18df6ed85f
@ -65,7 +65,7 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{#isContainer}}
|
{{#isContainer}}
|
||||||
{{#useBeanValidation}}@Valid{{/useBeanValidation}}
|
{{#useBeanValidation}}@Valid{{/useBeanValidation}}
|
||||||
{{#openApiNullable}}
|
{{#openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#isNullable}} = JsonNullable.undefined(){{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
private {{>nullableDataType}} {{name}}{{#isNullable}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(){{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
||||||
{{/openApiNullable}}
|
{{/openApiNullable}}
|
||||||
{{^openApiNullable}}
|
{{^openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
private {{>nullableDataType}} {{name}}{{#defaultValue}} = {{{.}}}{{/defaultValue}};
|
||||||
@ -79,7 +79,7 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
|
||||||
{{/isDateTime}}
|
{{/isDateTime}}
|
||||||
{{#openApiNullable}}
|
{{#openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#isNullable}} = JsonNullable.undefined(){{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
private {{>nullableDataType}} {{name}}{{#isNullable}} = JsonNullable.<{{{datatypeWithEnum}}}>undefined(){{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
||||||
{{/openApiNullable}}
|
{{/openApiNullable}}
|
||||||
{{^openApiNullable}}
|
{{^openApiNullable}}
|
||||||
private {{>nullableDataType}} {{name}}{{#isNullable}} = null{{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
private {{>nullableDataType}} {{name}}{{#isNullable}} = null{{/isNullable}}{{^isNullable}}{{#defaultValue}} = {{{.}}}{{/defaultValue}}{{/isNullable}};
|
||||||
@ -146,10 +146,18 @@ public class {{classname}}{{#parent}} extends {{{parent}}}{{/parent}}{{^parent}}
|
|||||||
{{#isMap}}
|
{{#isMap}}
|
||||||
|
|
||||||
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
public {{classname}} put{{nameInCamelCase}}Item(String key, {{{items.datatypeWithEnum}}} {{name}}Item) {
|
||||||
|
{{#openApiNullable}}
|
||||||
|
if (this.{{name}} == null{{#isNullable}} || !this.{{name}}.isPresent(){{/isNullable}}) {
|
||||||
|
this.{{name}} = {{#isNullable}}JsonNullable.of({{/isNullable}}{{{defaultValue}}}{{^defaultValue}}new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}HashMap{{/uniqueItems}}<>(){{/defaultValue}}{{#isNullable}}){{/isNullable}};
|
||||||
|
}
|
||||||
|
this.{{name}}{{#isNullable}}.get(){{/isNullable}}.put(key, {{name}}Item);
|
||||||
|
{{/openApiNullable}}
|
||||||
|
{{^openApiNullable}}
|
||||||
if (this.{{name}} == null) {
|
if (this.{{name}} == null) {
|
||||||
this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new HashMap<>(){{/defaultValue}};
|
this.{{name}} = {{{defaultValue}}}{{^defaultValue}}new {{#uniqueItems}}LinkedHashSet{{/uniqueItems}}{{^uniqueItems}}HashMap{{/uniqueItems}}<>(){{/defaultValue}};
|
||||||
}
|
}
|
||||||
this.{{name}}.put(key, {{name}}Item);
|
this.{{name}}.put(key, {{name}}Item);
|
||||||
|
{{/openApiNullable}}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
{{/isMap}}
|
{{/isMap}}
|
||||||
|
@ -2051,3 +2051,11 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
|
NullableMapProperty:
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
@ -32,7 +32,7 @@ public class Pet {
|
|||||||
|
|
||||||
private Category category;
|
private Category category;
|
||||||
|
|
||||||
private JsonNullable<String> name = JsonNullable.undefined();
|
private JsonNullable<String> name = JsonNullable.<String>undefined();
|
||||||
|
|
||||||
@Deprecated
|
@Deprecated
|
||||||
@Valid
|
@Valid
|
||||||
|
@ -41,6 +41,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -52,7 +52,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -25,16 +25,16 @@ import jakarta.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
|
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,105 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import jakarta.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -40,6 +40,7 @@ src/main/java/org/openapitools/model/MapTestDto.java
|
|||||||
src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java
|
src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java
|
||||||
src/main/java/org/openapitools/model/Model200ResponseDto.java
|
src/main/java/org/openapitools/model/Model200ResponseDto.java
|
||||||
src/main/java/org/openapitools/model/NameDto.java
|
src/main/java/org/openapitools/model/NameDto.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapPropertyDto.java
|
||||||
src/main/java/org/openapitools/model/NumberOnlyDto.java
|
src/main/java/org/openapitools/model/NumberOnlyDto.java
|
||||||
src/main/java/org/openapitools/model/OrderDto.java
|
src/main/java/org/openapitools/model/OrderDto.java
|
||||||
src/main/java/org/openapitools/model/OuterCompositeDto.java
|
src/main/java/org/openapitools/model/OuterCompositeDto.java
|
||||||
|
@ -54,7 +54,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ import jakarta.annotation.Generated;
|
|||||||
public class ContainerDefaultValueDto {
|
public class ContainerDefaultValueDto {
|
||||||
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
|
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
|
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValueDto nullableArray(List<String> nullableArray) {
|
public ContainerDefaultValueDto nullableArray(List<String> nullableArray) {
|
||||||
this.nullableArray = JsonNullable.of(nullableArray);
|
this.nullableArray = JsonNullable.of(nullableArray);
|
||||||
|
@ -0,0 +1,107 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import jakarta.validation.constraints.NotNull;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import jakarta.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapPropertyDto
|
||||||
|
*/
|
||||||
|
|
||||||
|
@JsonTypeName("NullableMapProperty")
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapPropertyDto {
|
||||||
|
|
||||||
|
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapPropertyDto languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapPropertyDto putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapPropertyDto nullableMapProperty = (NullableMapPropertyDto) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapPropertyDto {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -40,6 +40,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -54,7 +54,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue nullableArray(List<String> nullableArray) {
|
public ContainerDefaultValue nullableArray(List<String> nullableArray) {
|
||||||
this.nullableArray = JsonNullable.of(nullableArray);
|
this.nullableArray = JsonNullable.of(nullableArray);
|
||||||
|
@ -0,0 +1,108 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Schema(name = "languageValues", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -58,6 +58,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -54,7 +54,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,108 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Schema(name = "languageValues", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -52,6 +52,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -54,7 +54,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,108 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Schema(name = "languageValues", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -41,6 +41,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -54,7 +54,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,108 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Schema(name = "languageValues", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -32,13 +32,13 @@ import javax.annotation.Generated;
|
|||||||
public class ObjectWithUniqueItems {
|
public class ObjectWithUniqueItems {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<Set<String>> nullSet = JsonNullable.undefined();
|
private JsonNullable<Set<String>> nullSet = JsonNullable.<Set<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private Set<String> notNullSet;
|
private Set<String> notNullSet;
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullList = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullList = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> notNullList;
|
private List<String> notNullList;
|
||||||
|
@ -52,6 +52,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -0,0 +1,94 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private Map<String, String> languageValues;
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null) {
|
||||||
|
this.languageValues = new HashMap<>();
|
||||||
|
}
|
||||||
|
this.languageValues.put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public Map<String, String> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return Objects.equals(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -52,6 +52,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -55,7 +55,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -58,6 +58,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -55,7 +55,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -58,6 +58,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -55,7 +55,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -52,6 +52,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -55,7 +55,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -57,6 +57,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -55,7 +55,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -57,6 +57,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -55,7 +55,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -52,6 +52,7 @@ src/main/java/org/openapitools/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/model/ModelList.java
|
src/main/java/org/openapitools/model/ModelList.java
|
||||||
src/main/java/org/openapitools/model/ModelReturn.java
|
src/main/java/org/openapitools/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/model/Name.java
|
src/main/java/org/openapitools/model/Name.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/model/NumberOnly.java
|
src/main/java/org/openapitools/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/model/Order.java
|
src/main/java/org/openapitools/model/Order.java
|
||||||
src/main/java/org/openapitools/model/OuterComposite.java
|
src/main/java/org/openapitools/model/OuterComposite.java
|
||||||
|
@ -55,7 +55,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -28,16 +28,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,109 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -52,6 +52,7 @@ src/main/java/org/openapitools/virtualan/model/ModelApiResponse.java
|
|||||||
src/main/java/org/openapitools/virtualan/model/ModelList.java
|
src/main/java/org/openapitools/virtualan/model/ModelList.java
|
||||||
src/main/java/org/openapitools/virtualan/model/ModelReturn.java
|
src/main/java/org/openapitools/virtualan/model/ModelReturn.java
|
||||||
src/main/java/org/openapitools/virtualan/model/Name.java
|
src/main/java/org/openapitools/virtualan/model/Name.java
|
||||||
|
src/main/java/org/openapitools/virtualan/model/NullableMapProperty.java
|
||||||
src/main/java/org/openapitools/virtualan/model/NumberOnly.java
|
src/main/java/org/openapitools/virtualan/model/NumberOnly.java
|
||||||
src/main/java/org/openapitools/virtualan/model/Order.java
|
src/main/java/org/openapitools/virtualan/model/Order.java
|
||||||
src/main/java/org/openapitools/virtualan/model/OuterComposite.java
|
src/main/java/org/openapitools/virtualan/model/OuterComposite.java
|
||||||
|
@ -54,7 +54,7 @@ public class AdditionalPropertiesClass {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -27,16 +27,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValue {
|
public class ContainerDefaultValue {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValue() {
|
public ContainerDefaultValue() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,108 @@
|
|||||||
|
package org.openapitools.virtualan.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapProperty
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapProperty {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapProperty languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapProperty putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@Schema(name = "languageValues", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapProperty nullableMapProperty = (NullableMapProperty) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapProperty {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2186,6 +2186,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
@ -51,6 +51,7 @@ src/main/java/org/openapitools/model/MapTestDto.java
|
|||||||
src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java
|
src/main/java/org/openapitools/model/MixedPropertiesAndAdditionalPropertiesClassDto.java
|
||||||
src/main/java/org/openapitools/model/Model200ResponseDto.java
|
src/main/java/org/openapitools/model/Model200ResponseDto.java
|
||||||
src/main/java/org/openapitools/model/NameDto.java
|
src/main/java/org/openapitools/model/NameDto.java
|
||||||
|
src/main/java/org/openapitools/model/NullableMapPropertyDto.java
|
||||||
src/main/java/org/openapitools/model/NumberOnlyDto.java
|
src/main/java/org/openapitools/model/NumberOnlyDto.java
|
||||||
src/main/java/org/openapitools/model/OrderDto.java
|
src/main/java/org/openapitools/model/OrderDto.java
|
||||||
src/main/java/org/openapitools/model/OuterCompositeDto.java
|
src/main/java/org/openapitools/model/OuterCompositeDto.java
|
||||||
|
@ -57,7 +57,7 @@ public class AdditionalPropertiesClassDto {
|
|||||||
|
|
||||||
private Object anytype1;
|
private Object anytype1;
|
||||||
|
|
||||||
private JsonNullable<Object> anytype2 = JsonNullable.undefined();
|
private JsonNullable<Object> anytype2 = JsonNullable.<Object>undefined();
|
||||||
|
|
||||||
private Object anytype3;
|
private Object anytype3;
|
||||||
|
|
||||||
|
@ -30,16 +30,16 @@ import javax.annotation.Generated;
|
|||||||
public class ContainerDefaultValueDto {
|
public class ContainerDefaultValueDto {
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableRequiredArray = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private List<String> requiredArray = new ArrayList<>();
|
private List<String> requiredArray = new ArrayList<>();
|
||||||
|
|
||||||
@Valid
|
@Valid
|
||||||
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.undefined();
|
private JsonNullable<List<String>> nullableArrayWithDefault = JsonNullable.<List<String>>undefined();
|
||||||
|
|
||||||
public ContainerDefaultValueDto() {
|
public ContainerDefaultValueDto() {
|
||||||
super();
|
super();
|
||||||
|
@ -0,0 +1,111 @@
|
|||||||
|
package org.openapitools.model;
|
||||||
|
|
||||||
|
import java.net.URI;
|
||||||
|
import java.util.Objects;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonCreator;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonTypeName;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.HashMap;
|
||||||
|
import java.util.Map;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.util.NoSuchElementException;
|
||||||
|
import org.openapitools.jackson.nullable.JsonNullable;
|
||||||
|
import java.time.OffsetDateTime;
|
||||||
|
import javax.validation.Valid;
|
||||||
|
import javax.validation.constraints.*;
|
||||||
|
|
||||||
|
|
||||||
|
import java.util.*;
|
||||||
|
import javax.annotation.Generated;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* NullableMapPropertyDto
|
||||||
|
*/
|
||||||
|
|
||||||
|
@JsonTypeName("NullableMapProperty")
|
||||||
|
@Generated(value = "org.openapitools.codegen.languages.SpringCodegen")
|
||||||
|
public class NullableMapPropertyDto {
|
||||||
|
|
||||||
|
@Valid
|
||||||
|
private JsonNullable<Map<String, String>> languageValues = JsonNullable.<Map<String, String>>undefined();
|
||||||
|
|
||||||
|
public NullableMapPropertyDto languageValues(Map<String, String> languageValues) {
|
||||||
|
this.languageValues = JsonNullable.of(languageValues);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
public NullableMapPropertyDto putLanguageValuesItem(String key, String languageValuesItem) {
|
||||||
|
if (this.languageValues == null || !this.languageValues.isPresent()) {
|
||||||
|
this.languageValues = JsonNullable.of(new HashMap<>());
|
||||||
|
}
|
||||||
|
this.languageValues.get().put(key, languageValuesItem);
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get languageValues
|
||||||
|
* @return languageValues
|
||||||
|
*/
|
||||||
|
|
||||||
|
@ApiModelProperty(value = "")
|
||||||
|
@JsonProperty("languageValues")
|
||||||
|
public JsonNullable<Map<String, String>> getLanguageValues() {
|
||||||
|
return languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setLanguageValues(JsonNullable<Map<String, String>> languageValues) {
|
||||||
|
this.languageValues = languageValues;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object o) {
|
||||||
|
if (this == o) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (o == null || getClass() != o.getClass()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
NullableMapPropertyDto nullableMapProperty = (NullableMapPropertyDto) o;
|
||||||
|
return equalsNullable(this.languageValues, nullableMapProperty.languageValues);
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
|
||||||
|
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int hashCode() {
|
||||||
|
return Objects.hash(hashCodeNullable(languageValues));
|
||||||
|
}
|
||||||
|
|
||||||
|
private static <T> int hashCodeNullable(JsonNullable<T> a) {
|
||||||
|
if (a == null) {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
StringBuilder sb = new StringBuilder();
|
||||||
|
sb.append("class NullableMapPropertyDto {\n");
|
||||||
|
sb.append(" languageValues: ").append(toIndentedString(languageValues)).append("\n");
|
||||||
|
sb.append("}");
|
||||||
|
return sb.toString();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Convert the given object to string with each line indented by 4 spaces
|
||||||
|
* (except the first line).
|
||||||
|
*/
|
||||||
|
private String toIndentedString(Object o) {
|
||||||
|
if (o == null) {
|
||||||
|
return "null";
|
||||||
|
}
|
||||||
|
return o.toString().replace("\n", "\n ");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -2178,6 +2178,14 @@ components:
|
|||||||
property name with spaces:
|
property name with spaces:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
|
NullableMapProperty:
|
||||||
|
properties:
|
||||||
|
languageValues:
|
||||||
|
additionalProperties:
|
||||||
|
type: string
|
||||||
|
nullable: true
|
||||||
|
type: object
|
||||||
|
type: object
|
||||||
updatePetWithForm_request:
|
updatePetWithForm_request:
|
||||||
properties:
|
properties:
|
||||||
name:
|
name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user