Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[java] Apply additionalModelTypeAnnotations on enums #7539

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/**
* {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
*/
{{>additionalModelTypeAnnotations}}
public enum {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} {
{{#gson}}
{{#allowableValues}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import com.fasterxml.jackson.annotation.JsonCreator;
/**
* {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
*/
{{>additionalModelTypeAnnotations}}
public enum {{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}} {
{{#gson}}
{{#allowableValues}}{{#enumVars}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class Order {
/**
* Order Status
*/

public enum StatusEnum {
PLACED("placed"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class Pet {
/**
* pet status in the store
*/

public enum StatusEnum {
AVAILABLE("available"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class Order {
/**
* Order Status
*/

public enum StatusEnum {
PLACED("placed"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public class Pet {
/**
* pet status in the store
*/

public enum StatusEnum {
AVAILABLE("available"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class Order {
/**
* Order Status
*/

public enum StatusEnum {
PLACED("placed"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class Pet {
/**
* pet status in the store
*/

public enum StatusEnum {
AVAILABLE("available"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class Order {
/**
* Order Status
*/

public enum StatusEnum {
PLACED("placed"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class Pet {
/**
* pet status in the store
*/

public enum StatusEnum {
AVAILABLE("available"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class BigCat extends Cat {
/**
* Gets or Sets kind
*/

public enum KindEnum {
LIONS("lions"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class BigCatAllOf {
/**
* Gets or Sets kind
*/

public enum KindEnum {
LIONS("lions"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class EnumArrays {
/**
* Gets or Sets justSymbol
*/

public enum JustSymbolEnum {
GREATER_THAN_OR_EQUAL_TO(">="),

Expand Down Expand Up @@ -58,6 +59,7 @@ public static JustSymbolEnum fromValue(String value) {
/**
* Gets or Sets arrayEnum
*/

public enum ArrayEnumEnum {
FISH("fish"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* Gets or Sets EnumClass
*/

public enum EnumClass {

_ABC("_abc"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class EnumTest {
/**
* Gets or Sets enumString
*/

public enum EnumStringEnum {
UPPER("UPPER"),

Expand Down Expand Up @@ -59,6 +60,7 @@ public static EnumStringEnum fromValue(String value) {
/**
* Gets or Sets enumStringRequired
*/

public enum EnumStringRequiredEnum {
UPPER("UPPER"),

Expand Down Expand Up @@ -99,6 +101,7 @@ public static EnumStringRequiredEnum fromValue(String value) {
/**
* Gets or Sets enumInteger
*/

public enum EnumIntegerEnum {
NUMBER_1(1),

Expand Down Expand Up @@ -137,6 +140,7 @@ public static EnumIntegerEnum fromValue(Integer value) {
/**
* Gets or Sets enumNumber
*/

public enum EnumNumberEnum {
NUMBER_1_DOT_1(1.1),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class MapTest {
/**
* Gets or Sets inner
*/

public enum InnerEnum {
UPPER("UPPER"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class Order {
/**
* Order Status
*/

public enum StatusEnum {
PLACED("placed"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* Gets or Sets OuterEnum
*/

public enum OuterEnum {

PLACED("placed"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class Pet {
/**
* pet status in the store
*/

public enum StatusEnum {
AVAILABLE("available"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class BigCat extends Cat {
/**
* Gets or Sets kind
*/

public enum KindEnum {
LIONS("lions"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class BigCatAllOf {
/**
* Gets or Sets kind
*/

public enum KindEnum {
LIONS("lions"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class EnumArrays {
/**
* Gets or Sets justSymbol
*/

public enum JustSymbolEnum {
GREATER_THAN_OR_EQUAL_TO(">="),

Expand Down Expand Up @@ -58,6 +59,7 @@ public static JustSymbolEnum fromValue(String value) {
/**
* Gets or Sets arrayEnum
*/

public enum ArrayEnumEnum {
FISH("fish"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* Gets or Sets EnumClass
*/

public enum EnumClass {

_ABC("_abc"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class EnumTest {
/**
* Gets or Sets enumString
*/

public enum EnumStringEnum {
UPPER("UPPER"),

Expand Down Expand Up @@ -59,6 +60,7 @@ public static EnumStringEnum fromValue(String value) {
/**
* Gets or Sets enumStringRequired
*/

public enum EnumStringRequiredEnum {
UPPER("UPPER"),

Expand Down Expand Up @@ -99,6 +101,7 @@ public static EnumStringRequiredEnum fromValue(String value) {
/**
* Gets or Sets enumInteger
*/

public enum EnumIntegerEnum {
NUMBER_1(1),

Expand Down Expand Up @@ -137,6 +140,7 @@ public static EnumIntegerEnum fromValue(Integer value) {
/**
* Gets or Sets enumNumber
*/

public enum EnumNumberEnum {
NUMBER_1_DOT_1(1.1),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class MapTest {
/**
* Gets or Sets inner
*/

public enum InnerEnum {
UPPER("UPPER"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ public class Order {
/**
* Order Status
*/

public enum StatusEnum {
PLACED("placed"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
/**
* Gets or Sets OuterEnum
*/

public enum OuterEnum {

PLACED("placed"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public class Pet {
/**
* pet status in the store
*/

public enum StatusEnum {
AVAILABLE("available"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class BigCat extends Cat {
/**
* Gets or Sets kind
*/

public enum KindEnum {
LIONS("lions"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public class BigCatAllOf {
/**
* Gets or Sets kind
*/

public enum KindEnum {
LIONS("lions"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public class EnumArrays {
/**
* Gets or Sets justSymbol
*/

public enum JustSymbolEnum {
GREATER_THAN_OR_EQUAL_TO(">="),

Expand Down Expand Up @@ -57,6 +58,7 @@ public static JustSymbolEnum fromValue(String value) {
/**
* Gets or Sets arrayEnum
*/

public enum ArrayEnumEnum {
FISH("fish"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/**
* Gets or Sets EnumClass
*/

public enum EnumClass {

_ABC("_abc"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class EnumTest {
/**
* Gets or Sets enumString
*/

public enum EnumStringEnum {
UPPER("UPPER"),

Expand Down Expand Up @@ -58,6 +59,7 @@ public static EnumStringEnum fromValue(String value) {
/**
* Gets or Sets enumStringRequired
*/

public enum EnumStringRequiredEnum {
UPPER("UPPER"),

Expand Down Expand Up @@ -98,6 +100,7 @@ public static EnumStringRequiredEnum fromValue(String value) {
/**
* Gets or Sets enumInteger
*/

public enum EnumIntegerEnum {
NUMBER_1(1),

Expand Down Expand Up @@ -136,6 +139,7 @@ public static EnumIntegerEnum fromValue(Integer value) {
/**
* Gets or Sets enumNumber
*/

public enum EnumNumberEnum {
NUMBER_1_DOT_1(1.1),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public class MapTest {
/**
* Gets or Sets inner
*/

public enum InnerEnum {
UPPER("UPPER"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class Order {
/**
* Order Status
*/

public enum StatusEnum {
PLACED("placed"),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/**
* Gets or Sets OuterEnum
*/

public enum OuterEnum {

PLACED("placed"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public class Pet {
/**
* pet status in the store
*/

public enum StatusEnum {
AVAILABLE("available"),

Expand Down
Loading