[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:
William Cheng
2022-05-10 17:13:57 +08:00
committed by GitHub
parent 4d0da694ba
commit ad3b5f7045
186 changed files with 9764 additions and 8111 deletions

View File

@@ -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