[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

@@ -301,16 +301,7 @@
"content" : {
"application/x-www-form-urlencoded" : {
"schema" : {
"properties" : {
"name" : {
"description" : "Updated name of the pet",
"type" : "string"
},
"status" : {
"description" : "Updated status of the pet",
"type" : "string"
}
}
"$ref" : "#/components/schemas/updatePetWithForm_request"
}
}
}
@@ -347,17 +338,7 @@
"content" : {
"multipart/form-data" : {
"schema" : {
"properties" : {
"additionalMetadata" : {
"description" : "Additional data to pass to server",
"type" : "string"
},
"file" : {
"description" : "file to upload",
"format" : "binary",
"type" : "string"
}
}
"$ref" : "#/components/schemas/uploadFile_request"
}
}
}
@@ -1016,6 +997,31 @@
},
"title" : "An uploaded response",
"type" : "object"
},
"updatePetWithForm_request" : {
"properties" : {
"name" : {
"description" : "Updated name of the pet",
"type" : "string"
},
"status" : {
"description" : "Updated status of the pet",
"type" : "string"
}
}
},
"uploadFile_request" : {
"properties" : {
"additionalMetadata" : {
"description" : "Additional data to pass to server",
"type" : "string"
},
"file" : {
"description" : "file to upload",
"format" : "binary",
"type" : "string"
}
}
}
},
"securitySchemes" : {