mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-06 13:56:11 +00:00
[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:
@@ -45,6 +45,8 @@ public class AdditionalPropertiesAnyType extends HashMap<String, Object> {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesAnyType() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesAnyType name(String name) {
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ public class AdditionalPropertiesArray extends HashMap<String, List> {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesArray() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesArray name(String name) {
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ public class AdditionalPropertiesBoolean extends HashMap<String, Boolean> {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesBoolean() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesBoolean name(String name) {
|
||||
|
||||
|
||||
@@ -121,6 +121,8 @@ public class AdditionalPropertiesClass {
|
||||
@XmlElement(name = "anytype_3")
|
||||
private Object anytype3;
|
||||
|
||||
public AdditionalPropertiesClass() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesClass mapString(Map<String, String> mapString) {
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ public class AdditionalPropertiesInteger extends HashMap<String, Integer> {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesInteger() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesInteger name(String name) {
|
||||
|
||||
|
||||
@@ -46,6 +46,8 @@ public class AdditionalPropertiesNumber extends HashMap<String, BigDecimal> {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesNumber() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesNumber name(String name) {
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ public class AdditionalPropertiesObject extends HashMap<String, Map> {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesObject() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesObject name(String name) {
|
||||
|
||||
|
||||
@@ -45,6 +45,8 @@ public class AdditionalPropertiesString extends HashMap<String, String> {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public AdditionalPropertiesString() {
|
||||
}
|
||||
|
||||
public AdditionalPropertiesString name(String name) {
|
||||
|
||||
|
||||
@@ -60,6 +60,8 @@ public class Animal {
|
||||
@XmlElement(name = "color")
|
||||
private String color = "red";
|
||||
|
||||
public Animal() {
|
||||
}
|
||||
|
||||
public Animal className(String className) {
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ public class ArrayOfNumberOnly {
|
||||
@XmlElement(name = "arrayNumber")
|
||||
private List<BigDecimal> arrayNumber = null;
|
||||
|
||||
public ArrayOfNumberOnly() {
|
||||
}
|
||||
|
||||
public ArrayOfNumberOnly arrayNumber(List<BigDecimal> arrayNumber) {
|
||||
|
||||
|
||||
@@ -65,6 +65,8 @@ public class ArrayTest {
|
||||
@XmlElement(name = "arrayArrayOfModel")
|
||||
private List<List<ReadOnlyFirst>> arrayArrayOfModel = null;
|
||||
|
||||
public ArrayTest() {
|
||||
}
|
||||
|
||||
public ArrayTest arrayOfString(List<String> arrayOfString) {
|
||||
|
||||
|
||||
@@ -94,6 +94,8 @@ public class BigCat extends Cat {
|
||||
@XmlElement(name = "kind")
|
||||
private KindEnum kind;
|
||||
|
||||
public BigCat() {
|
||||
}
|
||||
|
||||
public BigCat kind(KindEnum kind) {
|
||||
|
||||
|
||||
@@ -88,6 +88,8 @@ public class BigCatAllOf {
|
||||
@XmlElement(name = "kind")
|
||||
private KindEnum kind;
|
||||
|
||||
public BigCatAllOf() {
|
||||
}
|
||||
|
||||
public BigCatAllOf kind(KindEnum kind) {
|
||||
|
||||
|
||||
@@ -68,6 +68,8 @@ public class Capitalization {
|
||||
@XmlElement(name = "ATT_NAME")
|
||||
private String ATT_NAME;
|
||||
|
||||
public Capitalization() {
|
||||
}
|
||||
|
||||
public Capitalization smallCamel(String smallCamel) {
|
||||
|
||||
|
||||
@@ -53,6 +53,8 @@ public class Cat extends Animal {
|
||||
@XmlElement(name = "declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
public Cat() {
|
||||
}
|
||||
|
||||
public Cat declawed(Boolean declawed) {
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ public class CatAllOf {
|
||||
@XmlElement(name = "declawed")
|
||||
private Boolean declawed;
|
||||
|
||||
public CatAllOf() {
|
||||
}
|
||||
|
||||
public CatAllOf declawed(Boolean declawed) {
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ public class Category {
|
||||
@XmlElement(name = "name")
|
||||
private String name = "default-name";
|
||||
|
||||
public Category() {
|
||||
}
|
||||
|
||||
public Category id(Long id) {
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ public class ClassModel {
|
||||
@XmlElement(name = "_class")
|
||||
private String propertyClass;
|
||||
|
||||
public ClassModel() {
|
||||
}
|
||||
|
||||
public ClassModel propertyClass(String propertyClass) {
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ public class Client {
|
||||
@XmlElement(name = "client")
|
||||
private String client;
|
||||
|
||||
public Client() {
|
||||
}
|
||||
|
||||
public Client client(String client) {
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ public class Dog extends Animal {
|
||||
@XmlElement(name = "breed")
|
||||
private String breed;
|
||||
|
||||
public Dog() {
|
||||
}
|
||||
|
||||
public Dog breed(String breed) {
|
||||
|
||||
|
||||
@@ -43,6 +43,8 @@ public class DogAllOf {
|
||||
@XmlElement(name = "breed")
|
||||
private String breed;
|
||||
|
||||
public DogAllOf() {
|
||||
}
|
||||
|
||||
public DogAllOf breed(String breed) {
|
||||
|
||||
|
||||
@@ -131,6 +131,8 @@ public class EnumArrays {
|
||||
@XmlElement(name = "arrayEnum")
|
||||
private List<ArrayEnumEnum> arrayEnum = null;
|
||||
|
||||
public EnumArrays() {
|
||||
}
|
||||
|
||||
public EnumArrays justSymbol(JustSymbolEnum justSymbol) {
|
||||
|
||||
|
||||
@@ -226,6 +226,8 @@ public class EnumTest {
|
||||
@XmlElement(name = "outerEnum")
|
||||
private OuterEnum outerEnum;
|
||||
|
||||
public EnumTest() {
|
||||
}
|
||||
|
||||
public EnumTest enumString(EnumStringEnum enumString) {
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
@@ -113,6 +113,8 @@ public class FormatTest {
|
||||
@XmlElement(name = "BigDecimal")
|
||||
private BigDecimal bigDecimal;
|
||||
|
||||
public FormatTest() {
|
||||
}
|
||||
|
||||
public FormatTest integer(Integer integer) {
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ public class HasOnlyReadOnly {
|
||||
@XmlElement(name = "foo")
|
||||
private String foo;
|
||||
|
||||
public HasOnlyReadOnly() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bar
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
@@ -62,6 +62,8 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
@XmlElement(name = "inner")
|
||||
private Map<String, Animal> map = null;
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass() {
|
||||
}
|
||||
|
||||
public MixedPropertiesAndAdditionalPropertiesClass uuid(UUID uuid) {
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ public class Model200Response {
|
||||
@XmlElement(name = "class")
|
||||
private String propertyClass;
|
||||
|
||||
public Model200Response() {
|
||||
}
|
||||
|
||||
public Model200Response name(Integer name) {
|
||||
|
||||
|
||||
@@ -53,6 +53,8 @@ public class ModelApiResponse {
|
||||
@XmlElement(name = "message")
|
||||
private String message;
|
||||
|
||||
public ModelApiResponse() {
|
||||
}
|
||||
|
||||
public ModelApiResponse code(Integer code) {
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ public class ModelReturn {
|
||||
@XmlElement(name = "return")
|
||||
private Integer _return;
|
||||
|
||||
public ModelReturn() {
|
||||
}
|
||||
|
||||
public ModelReturn _return(Integer _return) {
|
||||
|
||||
|
||||
@@ -59,6 +59,8 @@ public class Name {
|
||||
@XmlElement(name = "123Number")
|
||||
private Integer _123number;
|
||||
|
||||
public Name() {
|
||||
}
|
||||
|
||||
public Name name(Integer name) {
|
||||
|
||||
|
||||
@@ -44,6 +44,8 @@ public class NumberOnly {
|
||||
@XmlElement(name = "JustNumber")
|
||||
private BigDecimal justNumber;
|
||||
|
||||
public NumberOnly() {
|
||||
}
|
||||
|
||||
public NumberOnly justNumber(BigDecimal justNumber) {
|
||||
|
||||
|
||||
@@ -111,6 +111,8 @@ public class Order {
|
||||
@XmlElement(name = "complete")
|
||||
private Boolean complete = false;
|
||||
|
||||
public Order() {
|
||||
}
|
||||
|
||||
public Order id(Long id) {
|
||||
|
||||
|
||||
@@ -54,6 +54,8 @@ public class OuterComposite {
|
||||
@XmlElement(name = "my_boolean")
|
||||
private Boolean myBoolean;
|
||||
|
||||
public OuterComposite() {
|
||||
}
|
||||
|
||||
public OuterComposite myNumber(BigDecimal myNumber) {
|
||||
|
||||
|
||||
@@ -125,6 +125,8 @@ public class Pet {
|
||||
@XmlElement(name = "status")
|
||||
private StatusEnum status;
|
||||
|
||||
public Pet() {
|
||||
}
|
||||
|
||||
public Pet id(Long id) {
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ public class ReadOnlyFirst {
|
||||
@XmlElement(name = "baz")
|
||||
private String baz;
|
||||
|
||||
public ReadOnlyFirst() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get bar
|
||||
|
||||
@@ -43,6 +43,8 @@ public class SpecialModelName {
|
||||
@XmlElement(name = "$special[property.name]")
|
||||
private Long $specialPropertyName;
|
||||
|
||||
public SpecialModelName() {
|
||||
}
|
||||
|
||||
public SpecialModelName $specialPropertyName(Long $specialPropertyName) {
|
||||
|
||||
|
||||
@@ -48,6 +48,8 @@ public class Tag {
|
||||
@XmlElement(name = "name")
|
||||
private String name;
|
||||
|
||||
public Tag() {
|
||||
}
|
||||
|
||||
public Tag id(Long id) {
|
||||
|
||||
|
||||
@@ -69,6 +69,8 @@ public class TypeHolderDefault {
|
||||
@XmlElement(name = "arrayItem")
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
public TypeHolderDefault() {
|
||||
}
|
||||
|
||||
public TypeHolderDefault stringItem(String stringItem) {
|
||||
|
||||
|
||||
@@ -74,6 +74,8 @@ public class TypeHolderExample {
|
||||
@XmlElement(name = "arrayItem")
|
||||
private List<Integer> arrayItem = new ArrayList<>();
|
||||
|
||||
public TypeHolderExample() {
|
||||
}
|
||||
|
||||
public TypeHolderExample stringItem(String stringItem) {
|
||||
|
||||
|
||||
@@ -78,6 +78,8 @@ public class User {
|
||||
@XmlElement(name = "userStatus")
|
||||
private Integer userStatus;
|
||||
|
||||
public User() {
|
||||
}
|
||||
|
||||
public User id(Long id) {
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user