swagger-api / swagger-api/swagger-ui
OpenAPI 3.0: no validation for request body parameters in try it out
Open
@glowcloud is already working on this.
Since Mar 8, 2024.
cat: try-it-out
specification: 3.x
type: bug
- Dominant language
- JavaScript
- Stars
- 29k
- Forks
- 9.3k
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 25
Description
Describe the bug you're encountering
Swagger UI does not show validation errors on try it out for object parameters in OpenAPI 3.0 specifications.
To reproduce...
Steps to reproduce the behavior:
- Go to https://petstore3.swagger.io/
- Navigate to
/store/orderPOST request - Click on try it out button
- Change
idtotest - Click on execute button
- See no errors
Expected behavior
Swagger UI should validate incorrect input and show validation errors to the user. The errors will show for 2.0 specifications and for primitive parameters in 3.0:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.