forked from loafle/openapi-generator-original
comment out array of enum test case, fix JS enum partial template
This commit is contained in:
@@ -96,8 +96,20 @@ exports.prototype['{{baseName}}'] = {{#defaultValue}}{{{defaultValue}}}{{/defaul
|
||||
}
|
||||
|
||||
{{/vars}}{{/emitModelMethods}}
|
||||
{{#vars}}{{#isEnum}}{{>partial_model_inner_enum}}{{/isEnum}}{{#items.isEnum}}{{#items}}
|
||||
{{>partial_model_inner_enum}}{{/items}}*/{{/items.isEnum}}{{/vars}}
|
||||
{{#vars}}
|
||||
{{#isEnum}}
|
||||
{{^isContainer}}
|
||||
{{>partial_model_inner_enum}}
|
||||
{{/isContainer}}
|
||||
{{/isEnum}}
|
||||
{{#items.isEnum}}
|
||||
{{#items}}
|
||||
{{^isContainer}}
|
||||
{{>partial_model_inner_enum}}
|
||||
{{/isContainer}}
|
||||
{{/items}}
|
||||
{{/items.isEnum}}
|
||||
{{/vars}}
|
||||
|
||||
return exports;
|
||||
{{/model}}{{/models}}}));
|
||||
|
||||
@@ -1101,13 +1101,15 @@ definitions:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/definitions/ReadOnlyFirst'
|
||||
array_of_enum:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
enum:
|
||||
- UPPER
|
||||
- lower
|
||||
# commented out the below test case for array of enum for the time being
|
||||
# as not all language can handle it
|
||||
#array_of_enum:
|
||||
# type: array
|
||||
# items:
|
||||
# type: string
|
||||
# enum:
|
||||
# - UPPER
|
||||
# - lower
|
||||
NumberOnly:
|
||||
type: object
|
||||
properties:
|
||||
|
||||
Reference in New Issue
Block a user