forked from loafle/openapi-generator-original
Better inline model resolver to handle inline schema in array item (#12104)
* better support of inline schema in array item * update tests * update samples * regenerate samples * fix allof naming, remove files * add files * update samples * update readme * fix tests * update samples * update samples * add new files * update test spec * add back tests * remove unused files * comment out python test * update js test using own spec * remove files * remove unused files * remove files * remove unused files * better handling of allOf with a single type * comment out go test * remove test_all_of_with_single_ref_single_ref_type.py * fix inline resolver, uncomment go test
This commit is contained in:
@@ -2332,6 +2332,23 @@ components:
|
||||
type: object
|
||||
xml:
|
||||
name: Pet
|
||||
ArrayOfInlineAllOf:
|
||||
properties:
|
||||
id:
|
||||
format: int64
|
||||
type: integer
|
||||
name:
|
||||
example: doggie
|
||||
type: string
|
||||
array_allof_dog_property:
|
||||
items:
|
||||
allOf:
|
||||
- $ref: '#/components/schemas/Dog_allOf'
|
||||
- $ref: '#/components/schemas/ArrayOfInlineAllOf_array_allof_dog_propertyItems_allOf'
|
||||
type: array
|
||||
required:
|
||||
- name
|
||||
type: object
|
||||
inline_response_default:
|
||||
example:
|
||||
string:
|
||||
@@ -2487,6 +2504,11 @@ components:
|
||||
declawed:
|
||||
type: boolean
|
||||
type: object
|
||||
ArrayOfInlineAllOf_array_allof_dog_propertyItems_allOf:
|
||||
properties:
|
||||
color:
|
||||
type: string
|
||||
type: object
|
||||
securitySchemes:
|
||||
petstore_auth:
|
||||
flows:
|
||||
|
||||
Reference in New Issue
Block a user