Closed menakaj closed 2 years ago
Example Swagger/OpenAPI definition:
post: requestBody: content: application/fhir+json: schema: type: object properties: name: type: string text/plain: schema: type: string required: true responses: '200': description: OK security: - default: []
Swagger-UI configuration options:
SwaggerUI({ // your config options here })
?yourQueryStringConfig
When using other content types for POST request body, they are shown as application/json. If multiple content types are provided, it's only rendering the json type.
Steps to reproduce the behavior:
This is rendering correctly for PUT operations.
We were able to identify the issue and fix it. The cause was due to some changes that are being done to the actual swagger content.
Closing the issue since this is not an issue in the SwaggerUI library.
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
Swagger-UI configuration options:
Describe the bug you're encountering
When using other content types for POST request body, they are shown as application/json. If multiple content types are provided, it's only rendering the json type.
To reproduce...
Steps to reproduce the behavior:
Expected behavior
Screenshots
This is rendering correctly for PUT operations.
Additional context or thoughts