-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Open
Description
Describe the bug you're encountering
When I switch the content type from application/x-www-form-urlencoded to application/json after i clicked Try it out the generated example contains errors.
To reproduce...
Steps to reproduce the behavior:
- Go to https://editor.swagger.io/
- Load the Example Petstore OpenAPI 3.1
- Click on the first Endpoint (updatePet) to expand it
- Set the content type to
application/x-www-form-urlencoded - Click
Try it out - Set the content type to
application/json - Now you can see the errors in the generated example
- When you click on Reset everything looks good again
Expected behavior
There should be no errors in the generated examples.
Screenshots
Additional context or thoughts
- The error occurs from version v5.29.0 onwards
- We were able to reproduce the error in Firefox, Edge, and Chrome
- The error is independent of the specific OpenAPI documentation. It appears to occur in the frontend.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels