Skip to content

Commit 349a2ab

Browse files
committed
Update Java Okhttp-gson modelEnum.mustache File
Signed-off-by: Chrimle <[email protected]>
1 parent e911f50 commit 349a2ab

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/modelEnum.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import com.google.gson.stream.JsonWriter;
1212
/**
1313
* {{description}}{{^description}}Gets or Sets {{{name}}}{{/description}}
1414
*/
15+
{{#isDeprecated}}
16+
@Deprecated
17+
{{/isDeprecated}}
1518
@JsonAdapter({{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.Adapter.class)
1619
{{>additionalEnumTypeAnnotations}}public enum {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}{{#vendorExtensions.x-implements}}{{#-first}} implements {{{.}}}{{/-first}}{{^-first}}, {{{.}}}{{/-first}}{{/vendorExtensions.x-implements}} {
1720
{{#allowableValues}}{{#enumVars}}

0 commit comments

Comments
 (0)