We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Example Swagger/OpenAPI definition:
"/myapi/mymethod": { "post": { "summary": "My Method.", "operationId": "myapimymethod", "tags": [ "common" ], "parameters": [ { "in": "query", "name": "params", "required": "true", "description": "Additional data for document", "content": { "application/json":{ "schema": { "type": "object", "properties": { "firstname": { "type": "string" } } } } } } ], "requestBody": { "content": { "multipart/form-data": { "schema": { "$ref": "./schemas/body/somedata.json#/somedata" } } } } }
Swagger-UI configuration options:
const ui = SwaggerUIBundle({ url: "common.json", dom_id: '#swagger-ui', deepLinking: true, presets: [ SwaggerUIBundle.presets.apis, SwaggerUIStandalonePreset ], plugins: [ SwaggerUIBundle.plugins.DownloadUrl ], layout: "StandaloneLayout" })
I'm getting following results when content is being used in API description:
Open API documentation describing that I can use content inside parameters - section schema vs content
Steps to reproduce the behavior: Run in Swagger UI provided example.
Work as it is described in OpenApi documentation.
You will get following results.
The text was updated successfully, but these errors were encountered:
Thanks for the report! This issue is being tracked in #4442.
Sorry, something went wrong.
Closing as a duplicate of #4442.
No branches or pull requests
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
I'm getting following results when content is being used in API description:

Open API documentation describing that I can use content inside parameters - section schema vs content
To reproduce...
Steps to reproduce the behavior:
Run in Swagger UI provided example.
Expected behavior
Work as it is described in OpenApi documentation.
Screenshots
You will get following results.

The text was updated successfully, but these errors were encountered: