Merge remote-tracking branch 'origin/master' into 5.4.x

This commit is contained in:
WILLIAM CHENG
2021-11-21 09:43:21 +08:00
2826 changed files with 72620 additions and 6604 deletions

View File

@@ -445,6 +445,7 @@ public class ApiClient extends JavaTimeFormatter {
}
if (value instanceof Map) {
@SuppressWarnings("unchecked")
final Map<String, Object> valuesMap = (Map<String, Object>) value;
for (final Entry<String, Object> entry : valuesMap.entrySet()) {
params.add(entry.getKey(), parameterToString(entry.getValue()));

View File

@@ -44,6 +44,8 @@ public class AdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP_OF_MAP_PROPERTY = "map_of_map_property";
private Map<String, Map<String, String>> mapOfMapProperty = null;
public AdditionalPropertiesClass() {
}
public AdditionalPropertiesClass mapProperty(Map<String, String> mapProperty) {

View File

@@ -51,6 +51,8 @@ public class Animal {
public static final String JSON_PROPERTY_COLOR = "color";
private String color = "red";
public Animal() {
}
public Animal className(String className) {

View File

@@ -40,6 +40,8 @@ public class ArrayOfArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_ARRAY_NUMBER = "ArrayArrayNumber";
private List<List<BigDecimal>> arrayArrayNumber = null;
public ArrayOfArrayOfNumberOnly() {
}
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {

View File

@@ -40,6 +40,8 @@ public class ArrayOfNumberOnly {
public static final String JSON_PROPERTY_ARRAY_NUMBER = "ArrayNumber";
private List<BigDecimal> arrayNumber = null;
public ArrayOfNumberOnly() {
}
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {

View File

@@ -48,6 +48,8 @@ public class ArrayTest {
public static final String JSON_PROPERTY_ARRAY_ARRAY_OF_MODEL = "array_array_of_model";
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
public ArrayTest() {
}
public ArrayTest arrayOfString(List<String> arrayOfString) {

View File

@@ -57,6 +57,8 @@ public class Capitalization {
public static final String JSON_PROPERTY_A_T_T_N_A_M_E = "ATT_NAME";
private String ATT_NAME;
public Capitalization() {
}
public Capitalization smallCamel(String smallCamel) {

View File

@@ -43,6 +43,8 @@ public class Cat extends Animal {
public static final String JSON_PROPERTY_DECLAWED = "declawed";
private Boolean declawed;
public Cat() {
}
public Cat declawed(Boolean declawed) {

View File

@@ -37,6 +37,8 @@ public class CatAllOf {
public static final String JSON_PROPERTY_DECLAWED = "declawed";
private Boolean declawed;
public CatAllOf() {
}
public CatAllOf declawed(Boolean declawed) {

View File

@@ -41,6 +41,8 @@ public class Category {
public static final String JSON_PROPERTY_NAME = "name";
private String name = "default-name";
public Category() {
}
public Category id(Long id) {

View File

@@ -38,6 +38,8 @@ public class ClassModel {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "_class";
private String propertyClass;
public ClassModel() {
}
public ClassModel propertyClass(String propertyClass) {

View File

@@ -37,6 +37,8 @@ public class Client {
public static final String JSON_PROPERTY_CLIENT = "client";
private String client;
public Client() {
}
public Client client(String client) {

View File

@@ -39,6 +39,8 @@ public class DeprecatedObject {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public DeprecatedObject() {
}
public DeprecatedObject name(String name) {

View File

@@ -43,6 +43,8 @@ public class Dog extends Animal {
public static final String JSON_PROPERTY_BREED = "breed";
private String breed;
public Dog() {
}
public Dog breed(String breed) {

View File

@@ -37,6 +37,8 @@ public class DogAllOf {
public static final String JSON_PROPERTY_BREED = "breed";
private String breed;
public DogAllOf() {
}
public DogAllOf breed(String breed) {

View File

@@ -113,6 +113,8 @@ public class EnumArrays {
public static final String JSON_PROPERTY_ARRAY_ENUM = "array_enum";
private List<ArrayEnumEnum> arrayEnum = null;
public EnumArrays() {
}
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {

View File

@@ -217,6 +217,8 @@ public class EnumTest {
public static final String JSON_PROPERTY_OUTER_ENUM_INTEGER_DEFAULT_VALUE = "outerEnumIntegerDefaultValue";
private OuterEnumIntegerDefaultValue outerEnumIntegerDefaultValue = OuterEnumIntegerDefaultValue.NUMBER_0;
public EnumTest() {
}
public EnumTest enumString(EnumStringEnum enumString) {

View File

@@ -43,6 +43,8 @@ public class FileSchemaTestClass {
public static final String JSON_PROPERTY_FILES = "files";
private List<java.io.File> files = null;
public FileSchemaTestClass() {
}
public FileSchemaTestClass file(java.io.File file) {

View File

@@ -37,6 +37,8 @@ public class Foo {
public static final String JSON_PROPERTY_BAR = "bar";
private String bar = "bar";
public Foo() {
}
public Foo bar(String bar) {

View File

@@ -102,6 +102,8 @@ public class FormatTest {
public static final String JSON_PROPERTY_PATTERN_WITH_DIGITS_AND_DELIMITER = "pattern_with_digits_and_delimiter";
private String patternWithDigitsAndDelimiter;
public FormatTest() {
}
public FormatTest integer(Integer integer) {

View File

@@ -41,6 +41,18 @@ public class HasOnlyReadOnly {
public static final String JSON_PROPERTY_FOO = "foo";
private String foo;
public HasOnlyReadOnly() {
}
@JsonCreator
public HasOnlyReadOnly(
@JsonProperty(JSON_PROPERTY_BAR) String bar,
@JsonProperty(JSON_PROPERTY_FOO) String foo
) {
this();
this.bar = bar;
this.foo = foo;
}
/**
* Get bar

View File

@@ -42,6 +42,8 @@ public class HealthCheckResult {
public static final String JSON_PROPERTY_NULLABLE_MESSAGE = "NullableMessage";
private JsonNullable<String> nullableMessage = JsonNullable.<String>undefined();
public HealthCheckResult() {
}
public HealthCheckResult nullableMessage(String nullableMessage) {
this.nullableMessage = JsonNullable.<String>of(nullableMessage);

View File

@@ -38,6 +38,8 @@ public class InlineResponseDefault {
public static final String JSON_PROPERTY_STRING = "string";
private Foo string;
public InlineResponseDefault() {
}
public InlineResponseDefault string(Foo string) {

View File

@@ -87,6 +87,8 @@ public class MapTest {
public static final String JSON_PROPERTY_INDIRECT_MAP = "indirect_map";
private Map<String, Boolean> indirectMap = null;
public MapTest() {
}
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {

View File

@@ -51,6 +51,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
public static final String JSON_PROPERTY_MAP = "map";
private Map<String, Animal> map = null;
public MixedPropertiesAndAdditionalPropertiesClass() {
}
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {

View File

@@ -42,6 +42,8 @@ public class Model200Response {
public static final String JSON_PROPERTY_PROPERTY_CLASS = "class";
private String propertyClass;
public Model200Response() {
}
public Model200Response name(Integer name) {

View File

@@ -45,6 +45,8 @@ public class ModelApiResponse {
public static final String JSON_PROPERTY_MESSAGE = "message";
private String message;
public ModelApiResponse() {
}
public ModelApiResponse code(Integer code) {

View File

@@ -38,6 +38,8 @@ public class ModelReturn {
public static final String JSON_PROPERTY_RETURN = "return";
private Integer _return;
public ModelReturn() {
}
public ModelReturn _return(Integer _return) {

View File

@@ -50,6 +50,18 @@ public class Name {
public static final String JSON_PROPERTY_123NUMBER = "123Number";
private Integer _123number;
public Name() {
}
@JsonCreator
public Name(
@JsonProperty(JSON_PROPERTY_SNAKE_CASE) Integer snakeCase,
@JsonProperty(JSON_PROPERTY_123NUMBER) Integer _123number
) {
this();
this.snakeCase = snakeCase;
this._123number = _123number;
}
public Name name(Integer name) {

View File

@@ -92,6 +92,8 @@ public class NullableClass extends HashMap<String, Object> {
public static final String JSON_PROPERTY_OBJECT_ITEMS_NULLABLE = "object_items_nullable";
private Map<String, Object> objectItemsNullable = null;
public NullableClass() {
}
public NullableClass integerProp(Integer integerProp) {
this.integerProp = JsonNullable.<Integer>of(integerProp);

View File

@@ -38,6 +38,8 @@ public class NumberOnly {
public static final String JSON_PROPERTY_JUST_NUMBER = "JustNumber";
private BigDecimal justNumber;
public NumberOnly() {
}
public NumberOnly justNumber(BigDecimal justNumber) {

View File

@@ -53,6 +53,8 @@ public class ObjectWithDeprecatedFields {
public static final String JSON_PROPERTY_BARS = "bars";
private List<String> bars = null;
public ObjectWithDeprecatedFields() {
}
public ObjectWithDeprecatedFields uuid(String uuid) {

View File

@@ -95,6 +95,8 @@ public class Order {
public static final String JSON_PROPERTY_COMPLETE = "complete";
private Boolean complete = false;
public Order() {
}
public Order id(Long id) {

View File

@@ -46,6 +46,8 @@ public class OuterComposite {
public static final String JSON_PROPERTY_MY_BOOLEAN = "my_boolean";
private Boolean myBoolean;
public OuterComposite() {
}
public OuterComposite myNumber(BigDecimal myNumber) {

View File

@@ -38,6 +38,8 @@ public class OuterObjectWithEnumProperty {
public static final String JSON_PROPERTY_VALUE = "value";
private OuterEnumInteger value;
public OuterObjectWithEnumProperty() {
}
public OuterObjectWithEnumProperty value(OuterEnumInteger value) {

View File

@@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
@@ -100,6 +101,8 @@ public class Pet {
public static final String JSON_PROPERTY_STATUS = "status";
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {
@@ -207,6 +210,7 @@ public class Pet {
}
@JsonDeserialize(as = LinkedHashSet.class)
@JsonProperty(JSON_PROPERTY_PHOTO_URLS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setPhotoUrls(Set<String> photoUrls) {

View File

@@ -41,6 +41,16 @@ public class ReadOnlyFirst {
public static final String JSON_PROPERTY_BAZ = "baz";
private String baz;
public ReadOnlyFirst() {
}
@JsonCreator
public ReadOnlyFirst(
@JsonProperty(JSON_PROPERTY_BAR) String bar
) {
this();
this.bar = bar;
}
/**
* Get bar

View File

@@ -37,6 +37,8 @@ public class SpecialModelName {
public static final String JSON_PROPERTY_$_SPECIAL_PROPERTY_NAME = "$special[property.name]";
private Long $specialPropertyName;
public SpecialModelName() {
}
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {

View File

@@ -41,6 +41,8 @@ public class Tag {
public static final String JSON_PROPERTY_NAME = "name";
private String name;
public Tag() {
}
public Tag id(Long id) {

View File

@@ -65,6 +65,8 @@ public class User {
public static final String JSON_PROPERTY_USER_STATUS = "userStatus";
private Integer userStatus;
public User() {
}
public User id(Long id) {