[Java] fix deserialization of readonly properties (#10113)

* [Java] fix deserialization of readonly properties

* [Java] fix deserialization of readonly properties

* [Java] fix deserialization of readonly properties

* [Java] fix deserialization of readonly properties
This commit is contained in:
Oleh Kurpiak
2021-11-14 16:05:25 +02:00
committed by GitHub
parent 3bdbf0339a
commit e7c3bdacc2
1120 changed files with 2909 additions and 131 deletions

View File

@@ -45,6 +45,8 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
@XmlElement(name = "name")
private String name;
public AdditionalPropertiesAnyType() {
}
public AdditionalPropertiesAnyType name(String name) {

View File

@@ -46,6 +46,8 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
@XmlElement(name = "name")
private String name;
public AdditionalPropertiesArray() {
}
public AdditionalPropertiesArray name(String name) {

View File

@@ -45,6 +45,8 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
@XmlElement(name = "name")
private String name;
public AdditionalPropertiesBoolean() {
}
public AdditionalPropertiesBoolean name(String name) {

View File

@@ -121,6 +121,8 @@ public class AdditionalPropertiesClass {
@XmlElement(name = "anytype_3")
private Object anytype3;
public AdditionalPropertiesClass() {
}
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {

View File

@@ -45,6 +45,8 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
@XmlElement(name = "name")
private String name;
public AdditionalPropertiesInteger() {
}
public AdditionalPropertiesInteger name(String name) {

View File

@@ -46,6 +46,8 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
@XmlElement(name = "name")
private String name;
public AdditionalPropertiesNumber() {
}
public AdditionalPropertiesNumber name(String name) {

View File

@@ -45,6 +45,8 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
@XmlElement(name = "name")
private String name;
public AdditionalPropertiesObject() {
}
public AdditionalPropertiesObject name(String name) {

View File

@@ -45,6 +45,8 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
@XmlElement(name = "name")
private String name;
public AdditionalPropertiesString() {
}
public AdditionalPropertiesString name(String name) {

View File

@@ -60,6 +60,8 @@ public class Animal {
@XmlElement(name = "color")
private String color = "red";
public Animal() {
}
public Animal className(String className) {

View File

@@ -49,6 +49,8 @@ public class ArrayOfArrayOfNumberOnly {
@XmlElement(name = "arrayArrayNumber")
private List<List<BigDecimal>> arrayArrayNumber = null;
public ArrayOfArrayOfNumberOnly() {
}
public ArrayOfArrayOfNumberOnly arrayArrayNumber(List<List<BigDecimal>> arrayArrayNumber) {

View File

@@ -49,6 +49,8 @@ public class ArrayOfNumberOnly {
@XmlElement(name = "arrayNumber")
private List<BigDecimal> arrayNumber = null;
public ArrayOfNumberOnly() {
}
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {

View File

@@ -65,6 +65,8 @@ public class ArrayTest {
@XmlElement(name = "arrayArrayOfModel")
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
public ArrayTest() {
}
public ArrayTest arrayOfString(List<String> arrayOfString) {

View File

@@ -94,6 +94,8 @@ public class BigCat extends Cat {
@XmlElement(name = "kind")
private KindEnum kind;
public BigCat() {
}
public BigCat kind(KindEnum kind) {

View File

@@ -88,6 +88,8 @@ public class BigCatAllOf {
@XmlElement(name = "kind")
private KindEnum kind;
public BigCatAllOf() {
}
public BigCatAllOf kind(KindEnum kind) {

View File

@@ -68,6 +68,8 @@ public class Capitalization {
@XmlElement(name = "ATT_NAME")
private String ATT_NAME;
public Capitalization() {
}
public Capitalization smallCamel(String smallCamel) {

View File

@@ -53,6 +53,8 @@ public class Cat extends Animal {
@XmlElement(name = "declawed")
private Boolean declawed;
public Cat() {
}
public Cat declawed(Boolean declawed) {

View File

@@ -43,6 +43,8 @@ public class CatAllOf {
@XmlElement(name = "declawed")
private Boolean declawed;
public CatAllOf() {
}
public CatAllOf declawed(Boolean declawed) {

View File

@@ -48,6 +48,8 @@ public class Category {
@XmlElement(name = "name")
private String name = "default-name";
public Category() {
}
public Category id(Long id) {

View File

@@ -44,6 +44,8 @@ public class ClassModel {
@XmlElement(name = "_class")
private String propertyClass;
public ClassModel() {
}
public ClassModel propertyClass(String propertyClass) {

View File

@@ -43,6 +43,8 @@ public class Client {
@XmlElement(name = "client")
private String client;
public Client() {
}
public Client client(String client) {

View File

@@ -49,6 +49,8 @@ public class Dog extends Animal {
@XmlElement(name = "breed")
private String breed;
public Dog() {
}
public Dog breed(String breed) {

View File

@@ -43,6 +43,8 @@ public class DogAllOf {
@XmlElement(name = "breed")
private String breed;
public DogAllOf() {
}
public DogAllOf breed(String breed) {

View File

@@ -131,6 +131,8 @@ public class EnumArrays {
@XmlElement(name = "arrayEnum")
private List<ArrayEnumEnum> arrayEnum = null;
public EnumArrays() {
}
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {

View File

@@ -226,6 +226,8 @@ public class EnumTest {
@XmlElement(name = "outerEnum")
private OuterEnum outerEnum;
public EnumTest() {
}
public EnumTest enumString(EnumStringEnum enumString) {

View File

@@ -53,6 +53,8 @@ public class FileSchemaTestClass {
@XmlElement(name = "files")
private List<java.io.File> files = null;
public FileSchemaTestClass() {
}
public FileSchemaTestClass file(java.io.File file) {

View File

@@ -113,6 +113,8 @@ public class FormatTest {
@XmlElement(name = "BigDecimal")
private BigDecimal bigDecimal;
public FormatTest() {
}
public FormatTest integer(Integer integer) {

View File

@@ -48,6 +48,8 @@ public class HasOnlyReadOnly {
@XmlElement(name = "foo")
private String foo;
public HasOnlyReadOnly() {
}
/**
* Get bar

View File

@@ -112,6 +112,8 @@ public class MapTest {
@XmlElement(name = "inner")
private Map<String, Boolean> indirectMap = null;
public MapTest() {
}
public MapTest mapMapOfString(Map<String, Map<String, String>> mapMapOfString) {

View File

@@ -62,6 +62,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
@XmlElement(name = "inner")
private Map<String, Animal> map = null;
public MixedPropertiesAndAdditionalPropertiesClass() {
}
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {

View File

@@ -49,6 +49,8 @@ public class Model200Response {
@XmlElement(name = "class")
private String propertyClass;
public Model200Response() {
}
public Model200Response name(Integer name) {

View File

@@ -53,6 +53,8 @@ public class ModelApiResponse {
@XmlElement(name = "message")
private String message;
public ModelApiResponse() {
}
public ModelApiResponse code(Integer code) {

View File

@@ -44,6 +44,8 @@ public class ModelReturn {
@XmlElement(name = "return")
private Integer _return;
public ModelReturn() {
}
public ModelReturn _return(Integer _return) {

View File

@@ -59,6 +59,8 @@ public class Name {
@XmlElement(name = "123Number")
private Integer _123number;
public Name() {
}
public Name name(Integer name) {

View File

@@ -44,6 +44,8 @@ public class NumberOnly {
@XmlElement(name = "JustNumber")
private BigDecimal justNumber;
public NumberOnly() {
}
public NumberOnly justNumber(BigDecimal justNumber) {

View File

@@ -111,6 +111,8 @@ public class Order {
@XmlElement(name = "complete")
private Boolean complete = false;
public Order() {
}
public Order id(Long id) {

View File

@@ -54,6 +54,8 @@ public class OuterComposite {
@XmlElement(name = "my_boolean")
private Boolean myBoolean;
public OuterComposite() {
}
public OuterComposite myNumber(BigDecimal myNumber) {

View File

@@ -125,6 +125,8 @@ public class Pet {
@XmlElement(name = "status")
private StatusEnum status;
public Pet() {
}
public Pet id(Long id) {

View File

@@ -48,6 +48,8 @@ public class ReadOnlyFirst {
@XmlElement(name = "baz")
private String baz;
public ReadOnlyFirst() {
}
/**
* Get bar

View File

@@ -43,6 +43,8 @@ public class SpecialModelName {
@XmlElement(name = "$special[property.name]")
private Long $specialPropertyName;
public SpecialModelName() {
}
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {

View File

@@ -48,6 +48,8 @@ public class Tag {
@XmlElement(name = "name")
private String name;
public Tag() {
}
public Tag id(Long id) {

View File

@@ -69,6 +69,8 @@ public class TypeHolderDefault {
@XmlElement(name = "arrayItem")
private List<Integer> arrayItem = new ArrayList<>();
public TypeHolderDefault() {
}
public TypeHolderDefault stringItem(String stringItem) {

View File

@@ -74,6 +74,8 @@ public class TypeHolderExample {
@XmlElement(name = "arrayItem")
private List<Integer> arrayItem = new ArrayList<>();
public TypeHolderExample() {
}
public TypeHolderExample stringItem(String stringItem) {

View File

@@ -78,6 +78,8 @@ public class User {
@XmlElement(name = "userStatus")
private Integer userStatus;
public User() {
}
public User id(Long id) {

View File

@@ -218,6 +218,8 @@ public class XmlItem {
@XmlElementWrapper(namespace="http://f.com/schema", name = "prefix_ns_wrapped_array")
private List<Integer> prefixNsWrappedArray = null;
public XmlItem() {
}
public XmlItem attributeString(String attributeString) {