forked from loafle/openapi-generator-original
[JAVA] [SPRING] [PKMST] [MICRONAUT] XML wireformat: Fix Jackson useWrapping=false, JAXB+Jackson namespaces (#18870)
* Fix XML annotations on model properties (JavaSpring) * generate JAXB annotations for attributes and elements * generate wrapper annotations (JAXB and Jackson) * use XML config from items for annotations of containers * Add test for Jackson XML wrapper correctness * Add additional test cases to cover all xml applications in spec Test now covers all use cases described in - https://web.archive.org/web/20240424203304/https://swagger.io/docs/specification/data-models/representing-xml/ - https://spec.openapis.org/oas/v3.0.0#xml-arrays * Fix basename used instead of xmlName when items.xmlName is unset See last example in spec: https://spec.openapis.org/oas/v3.0.0#xml-arrays * Harmonize spacing between Annotation attribute name and value * Refactor and group JAXB vs. Jackson XML annotations, only generate latter if enabled This is in line with the way the class annotations in `xmlAnnotations.mustache` are rendered – which only renders the `@Jackson`… xml annotations if additionalProperty jackson is true. Also reorder annotation attributes in the following order: - localName/name - namespace (optional) - isAttribute/useWrapping (optional) * Explicitly render `useWrapping = true` to @JacksonXmlElementWrapper This was slightly inspired by @jzrebiec via PR #5371. Wrapping is the default since Jackson 2.1 – so explicitly rendering this will: - make generated model work out-of-the-box in Jackson 2.0 for instance - ensure the models still work if the local `XmlWrapper` was configured with `useXmlWrapper(false)` * Move xml test spec to java resources folder (not spring specific) * Make test class name match class-under-test This makes discovery & cross-navigation in IDE easier. * Add complete xml annotations test for Java generators * Fix Java PKMST generator not generating @JacksonXmlElementWrapper * Fix Java microprofile generator missing @JacksonXmlRootElement * Fix Java microprofile generator not using wrapper annotations and namespaces * Fix Java Micronaut Client creating invalid (unclosed) @XmlAttribute annotations * Fix Micronaut Client using wrong localName for @JacksonXmlElementWrapper * Fix Micronaut client rendering @JacksonXmlProperty annotation twice * Make Java Micronaut render @JacksonXmlElementWrapper(useWrapping=false) for non-wrapped elements * Fix Jackson element using `xml.name` when it should be `items.xml.name` Closes #5989 Closes #3223 Relates to #9371 * Fix JAXB element using `baseName` instead of `xmlName` when items.xmlName is unset * Remove XML generation debug output from templates * Remove redundant newline between XML class annotations and class Brings the SpringCodegen in line with other Java Codegen's * Remove redundant newline between XML setter annotations and setter * Fix multiline JavaDoc block indentation and format * Simplify / condense xml annotation template into single lines May look a bit more complex, but cuts out a lot of repetitiveness. Also reorders annotation attributes in the following order: - localName/name - namespace (optional) - isAttribute/useWrapping (optional) * Harmonize spacing between Annotation attribute name and value * Remove unused jackson_annotations partial Was not referenced anywhere in java-helidon resources folder --------- Co-authored-by: Christian Schuster <christian@dnup.de>
This commit is contained in:
@@ -35,7 +35,7 @@ public class AdditionalPropertiesAnyType {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -36,7 +36,7 @@ public class AdditionalPropertiesArray {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -35,7 +35,7 @@ public class AdditionalPropertiesBoolean {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -74,7 +74,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapString
|
||||
* @return mapString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "map_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_string")
|
||||
@@ -102,7 +102,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapNumber
|
||||
* @return mapNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_number")
|
||||
@@ -130,7 +130,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapInteger
|
||||
* @return mapInteger
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "map_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_integer")
|
||||
@@ -158,7 +158,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapBoolean
|
||||
* @return mapBoolean
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "map_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_boolean")
|
||||
@@ -186,7 +186,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapArrayInteger
|
||||
* @return mapArrayInteger
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_array_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_array_integer")
|
||||
@@ -214,7 +214,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapArrayAnytype
|
||||
* @return mapArrayAnytype
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_array_anytype", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_array_anytype")
|
||||
@@ -242,7 +242,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapMapString
|
||||
* @return mapMapString
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_map_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_map_string")
|
||||
@@ -270,7 +270,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get mapMapAnytype
|
||||
* @return mapMapAnytype
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_map_anytype", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_map_anytype")
|
||||
@@ -290,7 +290,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get anytype1
|
||||
* @return anytype1
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "anytype_1", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("anytype_1")
|
||||
@@ -310,7 +310,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get anytype2
|
||||
* @return anytype2
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "anytype_2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("anytype_2")
|
||||
@@ -330,7 +330,7 @@ public class AdditionalPropertiesClass {
|
||||
/**
|
||||
* Get anytype3
|
||||
* @return anytype3
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "anytype_3", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("anytype_3")
|
||||
|
||||
@@ -35,7 +35,7 @@ public class AdditionalPropertiesInteger {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -36,7 +36,7 @@ public class AdditionalPropertiesNumber {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -36,7 +36,7 @@ public class AdditionalPropertiesObject {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -35,7 +35,7 @@ public class AdditionalPropertiesString {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -58,7 +58,7 @@ public class Animal {
|
||||
/**
|
||||
* Get className
|
||||
* @return className
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "className", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("className")
|
||||
@@ -78,7 +78,7 @@ public class Animal {
|
||||
/**
|
||||
* Get color
|
||||
* @return color
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "color", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("color")
|
||||
|
||||
@@ -44,7 +44,7 @@ public class ArrayOfArrayOfNumberOnly {
|
||||
/**
|
||||
* Get arrayArrayNumber
|
||||
* @return arrayArrayNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "ArrayArrayNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("ArrayArrayNumber")
|
||||
|
||||
@@ -44,7 +44,7 @@ public class ArrayOfNumberOnly {
|
||||
/**
|
||||
* Get arrayNumber
|
||||
* @return arrayNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "ArrayNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("ArrayNumber")
|
||||
|
||||
@@ -50,7 +50,7 @@ public class ArrayTest {
|
||||
/**
|
||||
* Get arrayOfString
|
||||
* @return arrayOfString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "array_of_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_of_string")
|
||||
@@ -78,7 +78,7 @@ public class ArrayTest {
|
||||
/**
|
||||
* Get arrayArrayOfInteger
|
||||
* @return arrayArrayOfInteger
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "array_array_of_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_array_of_integer")
|
||||
@@ -106,7 +106,7 @@ public class ArrayTest {
|
||||
/**
|
||||
* Get arrayArrayOfModel
|
||||
* @return arrayArrayOfModel
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "array_array_of_model", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_array_of_model")
|
||||
|
||||
@@ -87,7 +87,7 @@ public class BigCat extends Cat {
|
||||
/**
|
||||
* Get kind
|
||||
* @return kind
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "kind", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("kind")
|
||||
|
||||
@@ -41,7 +41,7 @@ public class Capitalization {
|
||||
/**
|
||||
* Get smallCamel
|
||||
* @return smallCamel
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "smallCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("smallCamel")
|
||||
@@ -61,7 +61,7 @@ public class Capitalization {
|
||||
/**
|
||||
* Get capitalCamel
|
||||
* @return capitalCamel
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "CapitalCamel", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("CapitalCamel")
|
||||
@@ -81,7 +81,7 @@ public class Capitalization {
|
||||
/**
|
||||
* Get smallSnake
|
||||
* @return smallSnake
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "small_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("small_Snake")
|
||||
@@ -101,7 +101,7 @@ public class Capitalization {
|
||||
/**
|
||||
* Get capitalSnake
|
||||
* @return capitalSnake
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "Capital_Snake", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("Capital_Snake")
|
||||
@@ -121,7 +121,7 @@ public class Capitalization {
|
||||
/**
|
||||
* Get scAETHFlowPoints
|
||||
* @return scAETHFlowPoints
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "SCA_ETH_Flow_Points", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("SCA_ETH_Flow_Points")
|
||||
@@ -141,7 +141,7 @@ public class Capitalization {
|
||||
/**
|
||||
* Name of the pet
|
||||
* @return ATT_NAME
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "ATT_NAME", description = "Name of the pet ", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("ATT_NAME")
|
||||
|
||||
@@ -55,7 +55,7 @@ public class Cat extends Animal {
|
||||
/**
|
||||
* Get declawed
|
||||
* @return declawed
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "declawed", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("declawed")
|
||||
|
||||
@@ -44,7 +44,7 @@ public class Category {
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
@@ -64,7 +64,7 @@ public class Category {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -39,7 +39,7 @@ public class ChildWithNullable extends ParentWithNullable {
|
||||
/**
|
||||
* Get otherProperty
|
||||
* @return otherProperty
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "otherProperty", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("otherProperty")
|
||||
|
||||
@@ -32,7 +32,7 @@ public class ClassModel {
|
||||
/**
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "_class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("_class")
|
||||
|
||||
@@ -31,7 +31,7 @@ public class Client {
|
||||
/**
|
||||
* Get client
|
||||
* @return client
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "client", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("client")
|
||||
|
||||
@@ -66,7 +66,7 @@ public class ContainerDefaultValue {
|
||||
/**
|
||||
* Get nullableArray
|
||||
* @return nullableArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "nullable_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("nullable_array")
|
||||
@@ -94,7 +94,7 @@ public class ContainerDefaultValue {
|
||||
/**
|
||||
* Get nullableRequiredArray
|
||||
* @return nullableRequiredArray
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "nullable_required_array", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("nullable_required_array")
|
||||
@@ -122,7 +122,7 @@ public class ContainerDefaultValue {
|
||||
/**
|
||||
* Get requiredArray
|
||||
* @return requiredArray
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "required_array", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("required_array")
|
||||
@@ -150,7 +150,7 @@ public class ContainerDefaultValue {
|
||||
/**
|
||||
* Get nullableArrayWithDefault
|
||||
* @return nullableArrayWithDefault
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "nullable_array_with_default", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("nullable_array_with_default")
|
||||
|
||||
@@ -47,7 +47,7 @@ public class Dog extends Animal {
|
||||
/**
|
||||
* Get breed
|
||||
* @return breed
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "breed", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("breed")
|
||||
|
||||
@@ -108,7 +108,7 @@ public class EnumArrays {
|
||||
/**
|
||||
* Get justSymbol
|
||||
* @return justSymbol
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "just_symbol", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("just_symbol")
|
||||
@@ -136,7 +136,7 @@ public class EnumArrays {
|
||||
/**
|
||||
* Get arrayEnum
|
||||
* @return arrayEnum
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "array_enum", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("array_enum")
|
||||
|
||||
@@ -198,7 +198,7 @@ public class EnumTest {
|
||||
/**
|
||||
* Get enumString
|
||||
* @return enumString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("enum_string")
|
||||
@@ -218,7 +218,7 @@ public class EnumTest {
|
||||
/**
|
||||
* Get enumStringRequired
|
||||
* @return enumStringRequired
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "enum_string_required", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("enum_string_required")
|
||||
@@ -238,7 +238,7 @@ public class EnumTest {
|
||||
/**
|
||||
* Get enumInteger
|
||||
* @return enumInteger
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "enum_integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("enum_integer")
|
||||
@@ -258,7 +258,7 @@ public class EnumTest {
|
||||
/**
|
||||
* Get enumNumber
|
||||
* @return enumNumber
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "enum_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("enum_number")
|
||||
@@ -278,7 +278,7 @@ public class EnumTest {
|
||||
/**
|
||||
* Get outerEnum
|
||||
* @return outerEnum
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "outerEnum", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("outerEnum")
|
||||
|
||||
@@ -32,7 +32,7 @@ public class File {
|
||||
/**
|
||||
* Test capitalization
|
||||
* @return sourceURI
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "sourceURI", description = "Test capitalization", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("sourceURI")
|
||||
|
||||
@@ -38,7 +38,7 @@ public class FileSchemaTestClass {
|
||||
/**
|
||||
* Get file
|
||||
* @return file
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "file", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("file")
|
||||
@@ -66,7 +66,7 @@ public class FileSchemaTestClass {
|
||||
/**
|
||||
* Get files
|
||||
* @return files
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "files", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("files")
|
||||
|
||||
@@ -83,7 +83,7 @@ public class FormatTest {
|
||||
* minimum: 10
|
||||
* maximum: 100
|
||||
* @return integer
|
||||
*/
|
||||
*/
|
||||
@Min(10) @Max(100)
|
||||
@Schema(name = "integer", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("integer")
|
||||
@@ -105,7 +105,7 @@ public class FormatTest {
|
||||
* minimum: 20
|
||||
* maximum: 200
|
||||
* @return int32
|
||||
*/
|
||||
*/
|
||||
@Min(20) @Max(200)
|
||||
@Schema(name = "int32", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("int32")
|
||||
@@ -125,7 +125,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get int64
|
||||
* @return int64
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "int64", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("int64")
|
||||
@@ -147,7 +147,7 @@ public class FormatTest {
|
||||
* minimum: 32.1
|
||||
* maximum: 543.2
|
||||
* @return number
|
||||
*/
|
||||
*/
|
||||
@NotNull @Valid @DecimalMin("32.1") @DecimalMax("543.2")
|
||||
@Schema(name = "number", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("number")
|
||||
@@ -169,7 +169,7 @@ public class FormatTest {
|
||||
* minimum: 54.3
|
||||
* maximum: 987.6
|
||||
* @return _float
|
||||
*/
|
||||
*/
|
||||
@DecimalMin("54.3") @DecimalMax("987.6")
|
||||
@Schema(name = "float", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("float")
|
||||
@@ -191,7 +191,7 @@ public class FormatTest {
|
||||
* minimum: 67.8
|
||||
* maximum: 123.4
|
||||
* @return _double
|
||||
*/
|
||||
*/
|
||||
@DecimalMin("67.8") @DecimalMax("123.4")
|
||||
@Schema(name = "double", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("double")
|
||||
@@ -211,7 +211,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get string
|
||||
* @return string
|
||||
*/
|
||||
*/
|
||||
@Pattern(regexp = "/[a-z]/i")
|
||||
@Schema(name = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("string")
|
||||
@@ -231,7 +231,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get _byte
|
||||
* @return _byte
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "byte", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("byte")
|
||||
@@ -251,7 +251,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get binary
|
||||
* @return binary
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "binary", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("binary")
|
||||
@@ -271,7 +271,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get date
|
||||
* @return date
|
||||
*/
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@Schema(name = "date", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("date")
|
||||
@@ -291,7 +291,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("dateTime")
|
||||
@@ -311,7 +311,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "uuid", example = "72f98069-206d-4f12-9f12-3d1e525a8e84", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("uuid")
|
||||
@@ -331,7 +331,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get password
|
||||
* @return password
|
||||
*/
|
||||
*/
|
||||
@NotNull @Size(min = 10, max = 64)
|
||||
@Schema(name = "password", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("password")
|
||||
@@ -351,7 +351,7 @@ public class FormatTest {
|
||||
/**
|
||||
* Get bigDecimal
|
||||
* @return bigDecimal
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "BigDecimal", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("BigDecimal")
|
||||
|
||||
@@ -35,7 +35,7 @@ public class HasOnlyReadOnly {
|
||||
/**
|
||||
* Get bar
|
||||
* @return bar
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("bar")
|
||||
@@ -55,7 +55,7 @@ public class HasOnlyReadOnly {
|
||||
/**
|
||||
* Get foo
|
||||
* @return foo
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "foo", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("foo")
|
||||
|
||||
@@ -87,7 +87,7 @@ public class MapTest {
|
||||
/**
|
||||
* Get mapMapOfString
|
||||
* @return mapMapOfString
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map_map_of_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_map_of_string")
|
||||
@@ -115,7 +115,7 @@ public class MapTest {
|
||||
/**
|
||||
* Get mapOfEnumString
|
||||
* @return mapOfEnumString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "map_of_enum_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map_of_enum_string")
|
||||
@@ -143,7 +143,7 @@ public class MapTest {
|
||||
/**
|
||||
* Get directMap
|
||||
* @return directMap
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "direct_map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("direct_map")
|
||||
@@ -171,7 +171,7 @@ public class MapTest {
|
||||
/**
|
||||
* Get indirectMap
|
||||
* @return indirectMap
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "indirect_map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("indirect_map")
|
||||
|
||||
@@ -43,7 +43,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
/**
|
||||
* Get uuid
|
||||
* @return uuid
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "uuid", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("uuid")
|
||||
@@ -63,7 +63,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
/**
|
||||
* Get dateTime
|
||||
* @return dateTime
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "dateTime", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("dateTime")
|
||||
@@ -91,7 +91,7 @@ public class MixedPropertiesAndAdditionalPropertiesClass {
|
||||
/**
|
||||
* Get map
|
||||
* @return map
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "map", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("map")
|
||||
|
||||
@@ -36,7 +36,7 @@ public class Model200Response {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
@@ -56,7 +56,7 @@ public class Model200Response {
|
||||
/**
|
||||
* Get propertyClass
|
||||
* @return propertyClass
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "class", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("class")
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ModelApiResponse {
|
||||
/**
|
||||
* Get code
|
||||
* @return code
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "code", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("code")
|
||||
@@ -57,7 +57,7 @@ public class ModelApiResponse {
|
||||
/**
|
||||
* Get type
|
||||
* @return type
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("type")
|
||||
@@ -77,7 +77,7 @@ public class ModelApiResponse {
|
||||
/**
|
||||
* Get message
|
||||
* @return message
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "message", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("message")
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ModelList {
|
||||
/**
|
||||
* Get _123list
|
||||
* @return _123list
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "123-list", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("123-list")
|
||||
|
||||
@@ -34,7 +34,7 @@ public class ModelReturn {
|
||||
/**
|
||||
* Get _return
|
||||
* @return _return
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "return", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("return")
|
||||
|
||||
@@ -49,7 +49,7 @@ public class Name {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("name")
|
||||
@@ -69,7 +69,7 @@ public class Name {
|
||||
/**
|
||||
* Get snakeCase
|
||||
* @return snakeCase
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "snake_case", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("snake_case")
|
||||
@@ -89,7 +89,7 @@ public class Name {
|
||||
/**
|
||||
* Get property
|
||||
* @return property
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "property", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("property")
|
||||
@@ -109,7 +109,7 @@ public class Name {
|
||||
/**
|
||||
* Get _123number
|
||||
* @return _123number
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "123Number", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("123Number")
|
||||
|
||||
@@ -45,7 +45,7 @@ public class NullableMapProperty {
|
||||
/**
|
||||
* Get languageValues
|
||||
* @return languageValues
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "languageValues", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("languageValues")
|
||||
|
||||
@@ -32,7 +32,7 @@ public class NumberOnly {
|
||||
/**
|
||||
* Get justNumber
|
||||
* @return justNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "JustNumber", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("JustNumber")
|
||||
|
||||
@@ -82,7 +82,7 @@ public class Order {
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
@@ -102,7 +102,7 @@ public class Order {
|
||||
/**
|
||||
* Get petId
|
||||
* @return petId
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "petId", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("petId")
|
||||
@@ -122,7 +122,7 @@ public class Order {
|
||||
/**
|
||||
* Get quantity
|
||||
* @return quantity
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "quantity", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("quantity")
|
||||
@@ -142,7 +142,7 @@ public class Order {
|
||||
/**
|
||||
* Get shipDate
|
||||
* @return shipDate
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "shipDate", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("shipDate")
|
||||
@@ -162,7 +162,7 @@ public class Order {
|
||||
/**
|
||||
* Order Status
|
||||
* @return status
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "status", description = "Order Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("status")
|
||||
@@ -182,7 +182,7 @@ public class Order {
|
||||
/**
|
||||
* Get complete
|
||||
* @return complete
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "complete", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("complete")
|
||||
|
||||
@@ -36,7 +36,7 @@ public class OuterComposite {
|
||||
/**
|
||||
* Get myNumber
|
||||
* @return myNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "my_number", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("my_number")
|
||||
@@ -56,7 +56,7 @@ public class OuterComposite {
|
||||
/**
|
||||
* Get myString
|
||||
* @return myString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "my_string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("my_string")
|
||||
@@ -76,7 +76,7 @@ public class OuterComposite {
|
||||
/**
|
||||
* Get myBoolean
|
||||
* @return myBoolean
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "my_boolean", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("my_boolean")
|
||||
|
||||
@@ -82,7 +82,7 @@ public class ParentWithNullable {
|
||||
/**
|
||||
* Get type
|
||||
* @return type
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "type", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("type")
|
||||
@@ -102,7 +102,7 @@ public class ParentWithNullable {
|
||||
/**
|
||||
* Get nullableProperty
|
||||
* @return nullableProperty
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "nullableProperty", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("nullableProperty")
|
||||
|
||||
@@ -102,7 +102,7 @@ public class Pet {
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
@@ -122,7 +122,7 @@ public class Pet {
|
||||
/**
|
||||
* Get category
|
||||
* @return category
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "category", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("category")
|
||||
@@ -142,7 +142,7 @@ public class Pet {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "name", example = "doggie", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("name")
|
||||
@@ -170,7 +170,7 @@ public class Pet {
|
||||
/**
|
||||
* Get photoUrls
|
||||
* @return photoUrls
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "photoUrls", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("photoUrls")
|
||||
@@ -199,7 +199,7 @@ public class Pet {
|
||||
/**
|
||||
* Get tags
|
||||
* @return tags
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "tags", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("tags")
|
||||
@@ -220,7 +220,7 @@ public class Pet {
|
||||
* pet status in the store
|
||||
* @return status
|
||||
* @deprecated
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "status", description = "pet status in the store", deprecated = true, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("status")
|
||||
@@ -231,7 +231,7 @@ public class Pet {
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
*/
|
||||
@Deprecated
|
||||
public void setStatus(StatusEnum status) {
|
||||
this.status = status;
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ReadOnlyFirst {
|
||||
/**
|
||||
* Get bar
|
||||
* @return bar
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "bar", accessMode = Schema.AccessMode.READ_ONLY, requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("bar")
|
||||
@@ -53,7 +53,7 @@ public class ReadOnlyFirst {
|
||||
/**
|
||||
* Get baz
|
||||
* @return baz
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "baz", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("baz")
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ResponseObjectWithDifferentFieldNames {
|
||||
/**
|
||||
* Get normalPropertyName
|
||||
* @return normalPropertyName
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "normalPropertyName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("normalPropertyName")
|
||||
@@ -57,7 +57,7 @@ public class ResponseObjectWithDifferentFieldNames {
|
||||
/**
|
||||
* Get UPPER_CASE_PROPERTY_SNAKE
|
||||
* @return UPPER_CASE_PROPERTY_SNAKE
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "UPPER_CASE_PROPERTY_SNAKE", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("UPPER_CASE_PROPERTY_SNAKE")
|
||||
@@ -77,7 +77,7 @@ public class ResponseObjectWithDifferentFieldNames {
|
||||
/**
|
||||
* Get lowerCasePropertyDashes
|
||||
* @return lowerCasePropertyDashes
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "lower-case-property-dashes", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("lower-case-property-dashes")
|
||||
@@ -97,7 +97,7 @@ public class ResponseObjectWithDifferentFieldNames {
|
||||
/**
|
||||
* Get propertyNameWithSpaces
|
||||
* @return propertyNameWithSpaces
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "property name with spaces", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("property name with spaces")
|
||||
|
||||
@@ -33,7 +33,7 @@ public class SpecialModelName {
|
||||
/**
|
||||
* Get $specialPropertyName
|
||||
* @return $specialPropertyName
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "$special[property.name]", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("$special[property.name]")
|
||||
|
||||
@@ -33,7 +33,7 @@ public class Tag {
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
@@ -53,7 +53,7 @@ public class Tag {
|
||||
/**
|
||||
* Get name
|
||||
* @return name
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name")
|
||||
|
||||
@@ -59,7 +59,7 @@ public class TypeHolderDefault {
|
||||
/**
|
||||
* Get stringItem
|
||||
* @return stringItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "string_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("string_item")
|
||||
@@ -79,7 +79,7 @@ public class TypeHolderDefault {
|
||||
/**
|
||||
* Get numberItem
|
||||
* @return numberItem
|
||||
*/
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@Schema(name = "number_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("number_item")
|
||||
@@ -99,7 +99,7 @@ public class TypeHolderDefault {
|
||||
/**
|
||||
* Get integerItem
|
||||
* @return integerItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "integer_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("integer_item")
|
||||
@@ -119,7 +119,7 @@ public class TypeHolderDefault {
|
||||
/**
|
||||
* Get boolItem
|
||||
* @return boolItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "bool_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("bool_item")
|
||||
@@ -147,7 +147,7 @@ public class TypeHolderDefault {
|
||||
/**
|
||||
* Get arrayItem
|
||||
* @return arrayItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "array_item", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("array_item")
|
||||
|
||||
@@ -62,7 +62,7 @@ public class TypeHolderExample {
|
||||
/**
|
||||
* Get stringItem
|
||||
* @return stringItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "string_item", example = "what", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("string_item")
|
||||
@@ -82,7 +82,7 @@ public class TypeHolderExample {
|
||||
/**
|
||||
* Get numberItem
|
||||
* @return numberItem
|
||||
*/
|
||||
*/
|
||||
@NotNull @Valid
|
||||
@Schema(name = "number_item", example = "1.234", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("number_item")
|
||||
@@ -102,7 +102,7 @@ public class TypeHolderExample {
|
||||
/**
|
||||
* Get floatItem
|
||||
* @return floatItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "float_item", example = "1.234", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("float_item")
|
||||
@@ -122,7 +122,7 @@ public class TypeHolderExample {
|
||||
/**
|
||||
* Get integerItem
|
||||
* @return integerItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "integer_item", example = "-2", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("integer_item")
|
||||
@@ -142,7 +142,7 @@ public class TypeHolderExample {
|
||||
/**
|
||||
* Get boolItem
|
||||
* @return boolItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "bool_item", example = "true", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("bool_item")
|
||||
@@ -170,7 +170,7 @@ public class TypeHolderExample {
|
||||
/**
|
||||
* Get arrayItem
|
||||
* @return arrayItem
|
||||
*/
|
||||
*/
|
||||
@NotNull
|
||||
@Schema(name = "array_item", example = "[0,1,2,3]", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@JsonProperty("array_item")
|
||||
|
||||
@@ -45,7 +45,7 @@ public class User {
|
||||
/**
|
||||
* Get id
|
||||
* @return id
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "id", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("id")
|
||||
@@ -65,7 +65,7 @@ public class User {
|
||||
/**
|
||||
* Get username
|
||||
* @return username
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "username", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("username")
|
||||
@@ -85,7 +85,7 @@ public class User {
|
||||
/**
|
||||
* Get firstName
|
||||
* @return firstName
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "firstName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("firstName")
|
||||
@@ -105,7 +105,7 @@ public class User {
|
||||
/**
|
||||
* Get lastName
|
||||
* @return lastName
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "lastName", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("lastName")
|
||||
@@ -125,7 +125,7 @@ public class User {
|
||||
/**
|
||||
* Get email
|
||||
* @return email
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "email", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("email")
|
||||
@@ -145,7 +145,7 @@ public class User {
|
||||
/**
|
||||
* Get password
|
||||
* @return password
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "password", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("password")
|
||||
@@ -165,7 +165,7 @@ public class User {
|
||||
/**
|
||||
* Get phone
|
||||
* @return phone
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "phone", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("phone")
|
||||
@@ -185,7 +185,7 @@ public class User {
|
||||
/**
|
||||
* User Status
|
||||
* @return userStatus
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "userStatus", description = "User Status", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("userStatus")
|
||||
|
||||
@@ -100,7 +100,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get attributeString
|
||||
* @return attributeString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "attribute_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_string")
|
||||
@@ -120,7 +120,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get attributeNumber
|
||||
* @return attributeNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "attribute_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_number")
|
||||
@@ -140,7 +140,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get attributeInteger
|
||||
* @return attributeInteger
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "attribute_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_integer")
|
||||
@@ -160,7 +160,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get attributeBoolean
|
||||
* @return attributeBoolean
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "attribute_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("attribute_boolean")
|
||||
@@ -188,7 +188,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get wrappedArray
|
||||
* @return wrappedArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("wrapped_array")
|
||||
@@ -208,7 +208,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get nameString
|
||||
* @return nameString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_string")
|
||||
@@ -228,7 +228,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get nameNumber
|
||||
* @return nameNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "name_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_number")
|
||||
@@ -248,7 +248,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get nameInteger
|
||||
* @return nameInteger
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_integer")
|
||||
@@ -268,7 +268,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get nameBoolean
|
||||
* @return nameBoolean
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_boolean")
|
||||
@@ -296,7 +296,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get nameArray
|
||||
* @return nameArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_array")
|
||||
@@ -324,7 +324,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get nameWrappedArray
|
||||
* @return nameWrappedArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "name_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("name_wrapped_array")
|
||||
@@ -344,7 +344,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixString
|
||||
* @return prefixString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_string")
|
||||
@@ -364,7 +364,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixNumber
|
||||
* @return prefixNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "prefix_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_number")
|
||||
@@ -384,7 +384,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixInteger
|
||||
* @return prefixInteger
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_integer")
|
||||
@@ -404,7 +404,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixBoolean
|
||||
* @return prefixBoolean
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_boolean")
|
||||
@@ -432,7 +432,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixArray
|
||||
* @return prefixArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_array")
|
||||
@@ -460,7 +460,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixWrappedArray
|
||||
* @return prefixWrappedArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_wrapped_array")
|
||||
@@ -480,7 +480,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get namespaceString
|
||||
* @return namespaceString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_string")
|
||||
@@ -500,7 +500,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get namespaceNumber
|
||||
* @return namespaceNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "namespace_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_number")
|
||||
@@ -520,7 +520,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get namespaceInteger
|
||||
* @return namespaceInteger
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_integer")
|
||||
@@ -540,7 +540,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get namespaceBoolean
|
||||
* @return namespaceBoolean
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_boolean")
|
||||
@@ -568,7 +568,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get namespaceArray
|
||||
* @return namespaceArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_array")
|
||||
@@ -596,7 +596,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get namespaceWrappedArray
|
||||
* @return namespaceWrappedArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "namespace_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("namespace_wrapped_array")
|
||||
@@ -616,7 +616,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixNsString
|
||||
* @return prefixNsString
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_string", example = "string", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_string")
|
||||
@@ -636,7 +636,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixNsNumber
|
||||
* @return prefixNsNumber
|
||||
*/
|
||||
*/
|
||||
@Valid
|
||||
@Schema(name = "prefix_ns_number", example = "1.234", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_number")
|
||||
@@ -656,7 +656,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixNsInteger
|
||||
* @return prefixNsInteger
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_integer", example = "-2", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_integer")
|
||||
@@ -676,7 +676,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixNsBoolean
|
||||
* @return prefixNsBoolean
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_boolean", example = "true", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_boolean")
|
||||
@@ -704,7 +704,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixNsArray
|
||||
* @return prefixNsArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_array")
|
||||
@@ -732,7 +732,7 @@ public class XmlItem {
|
||||
/**
|
||||
* Get prefixNsWrappedArray
|
||||
* @return prefixNsWrappedArray
|
||||
*/
|
||||
*/
|
||||
|
||||
@Schema(name = "prefix_ns_wrapped_array", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
||||
@JsonProperty("prefix_ns_wrapped_array")
|
||||
|
||||
Reference in New Issue
Block a user