nbruno ddc309ec19 Add support for Spring's RestTemplate in Java client codegen (#5404)
* Add support for Spring's RestTemplate in Java client codegen

Resolves #1176

* Update all Java samples to include change for Jackson enums

Currently enums are deserialized from a String value with an
explicit @JsonCreator. However, they are not being serialized with
this String value. This change introduces the @JsonValue annotation
on the toString() method of enums, so they will be serialized as a
String with the correct value.
2017-04-24 14:40:47 +08:00

810 B

EnumTest

Properties

Name Type Description Notes
enumString EnumStringEnum [optional]
enumInteger EnumIntegerEnum [optional]
enumNumber EnumNumberEnum [optional]
outerEnum OuterEnum [optional]

Enum: EnumStringEnum

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