DielN b9f6fe6b1f
[Java] [Microprofile] Add Json-B polymorphism type info annotations (#20164)
* [Microprofile] Add Json-B polymorphism annotations

* [Microprofile] Set openApiNullable in configs to false

* [Microprofile] Bump JSON Bind version to 3.0

* [Microprofile] Only apply JSON-B polymorphism for MP 3.0

* Update samples

* [Microprofile] Update documentation/configs for openApiNullable

* Update docs
2024-12-03 12:02:54 +08:00

1.2 KiB

EnumTest

Properties

Name Type Description Notes
enumString EnumStringEnum [optional]
enumStringRequired EnumStringRequiredEnum
enumInteger EnumIntegerEnum [optional]
enumNumber EnumNumberEnum [optional]
outerEnum OuterEnum [optional]
outerEnumInteger OuterEnumInteger [optional]
outerEnumDefaultValue OuterEnumDefaultValue [optional]
outerEnumIntegerDefaultValue OuterEnumIntegerDefaultValue [optional]

Enum: EnumStringEnum

Name Value
UPPER "UPPER"
LOWER "lower"
EMPTY ""

Enum: EnumStringRequiredEnum

Name Value
UPPER "UPPER"
LOWER "lower"
EMPTY ""

Enum: EnumIntegerEnum

Name Value
NUMBER_1 1
NUMBER_MINUS_1 -1

Enum: EnumNumberEnum

Name Value
NUMBER_1_DOT_1 1.1
NUMBER_MINUS_1_DOT_2 -1.2