We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In 3.0.0_enhancements branch, I noticed this line:
3.0.0_enhancements
swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java
Lines 3446 to 3450 in 112c1f0
This appears to select the only the first content-type for a RequestBody.
What can we expect will be the plan for code generation, for the RequestBody for cases 1) and 2) below?
"requestBody": { "description": "Pet object that needs to be added to the store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Pet" } }, "application/xml": { "schema": { "$ref": "#/components/schemas/Pet" } } }, "required": false },
Schemas can vary by media type.
https://swagger.io/docs/specification/describing-request-body/
"requestBody": { "description": "Pet object that needs to be added to the store", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Cat" } }, "application/xml": { "schema": { "$ref": "#/components/schemas/Dog" } } }, "required": false },
The text was updated successfully, but these errors were encountered:
cc @HugoMario
Sorry, something went wrong.
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
In
3.0.0_enhancements
branch, I noticed this line:swagger-codegen/modules/swagger-codegen/src/main/java/io/swagger/codegen/DefaultCodegen.java
Lines 3446 to 3450 in 112c1f0
This appears to select the only the first content-type for a RequestBody.
What can we expect will be the plan for code generation, for the RequestBody for cases 1) and 2) below?
1) Multiple content-types with the same Schema
2) Multiple content-types with different Schemas
https://swagger.io/docs/specification/describing-request-body/
The text was updated successfully, but these errors were encountered: