forked from OpenAPITools/openapi-generator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinterfaceReqVar.mustache
More file actions
19 lines (19 loc) · 1019 Bytes
/
interfaceReqVar.mustache
File metadata and controls
19 lines (19 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{! comments are used to break long lines into multiple lines for better readability }}
{{#swagger2AnnotationLibrary}}
@get:Schema({{#example}}example = "{{{.}}}", {{/example}}{{!
}}{{#required}}requiredMode = Schema.RequiredMode.REQUIRED, {{/required}}{{!
}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}{{!
}}description = "{{{description}}}"){{!
}}{{/swagger2AnnotationLibrary}}{{!
}}{{#swagger1AnnotationLibrary}}
@get:ApiModelProperty({{#example}}example = "{{{.}}}", {{/example}}{{!
}}{{#required}}required = {{required}}, {{/required}}{{!
}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}{{!
}}value = "{{{description}}}"){{!
}}{{/swagger1AnnotationLibrary}}{{!
}}{{#vendorExtensions.x-field-extra-annotation}}
{{{.}}}{{!
}}{{/vendorExtensions.x-field-extra-annotation}}
{{#isInherited}}override {{/isInherited}}{{>modelMutable}} {{{name}}}: {{!
}}{{#isEnum}}{{classname}}.{{nameInPascalCase}}{{/isEnum}}{{!
}}{{^isEnum}}{{{dataType}}}{{/isEnum}}