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:
@@ -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" : {
|
||||
|
||||
Reference in New Issue
Block a user