forked from loafle/openapi-generator-original
[Inline model resolver] various improvements (#12293)
* better handling of requestbody in the inline resolver * remove commented code * better request body naming * fix unique naming * minor code format change * removed additional underscore from names, fix test * more fixes, update tests * fix all tests * undo changes to default codegen * update samples * update python tests * add new files * update samples
This commit is contained in:
@@ -17,18 +17,10 @@ paths:
|
||||
put:
|
||||
operationId: dummyPut
|
||||
requestBody:
|
||||
$ref: '#/components/requestBodies/inline_object'
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
required:
|
||||
- id
|
||||
type: object
|
||||
$ref: '#/components/schemas/dummyPut_request'
|
||||
required: true
|
||||
responses:
|
||||
"200":
|
||||
@@ -144,12 +136,6 @@ components:
|
||||
- id
|
||||
type: object
|
||||
required: true
|
||||
inline_object:
|
||||
content:
|
||||
'*/*':
|
||||
schema:
|
||||
$ref: '#/components/schemas/inline_object'
|
||||
required: true
|
||||
schemas:
|
||||
additionalPropertiesObject:
|
||||
additionalProperties:
|
||||
@@ -194,7 +180,7 @@ components:
|
||||
description: Inner string
|
||||
type: string
|
||||
type: object
|
||||
inline_object:
|
||||
dummyPut_request:
|
||||
properties:
|
||||
id:
|
||||
type: string
|
||||
|
||||
Reference in New Issue
Block a user