swagger-editor
swagger-editor copied to clipboard
Validation isn't occurring for external $refs, even after lazy-loading and rendering them.
Q&A (please complete the following information)
- OS: Linux (NixOS)
- Browser: Chrome
- Version: ?
- Method of installation: Online version, editor.swagger.io
- Swagger-Editor version:
{
swaggerEditor: "4.0.1/gab9f22c-dirty"
swaggerUi: {version: "4.1.0", gitRevision: "gb71446c", gitDirty: true, buildTimestamp: "Mon, 08 Nov 2021 13:01:36 GMT"}
Example Swagger/OpenAPI definition: https://editor.swagger.io/?url=https://gist.githubusercontent.com/ponelat/7165747e273af0ecb6d4ff7f994eb4ac/raw/3be018fdccb33144bfa2ab4197d0a094a496481f/openapi.yml
Describe the bug you're encountering
After expanding POST /pet, I see "Unknown type: asd", which makes sense but there are no validation errors.
To reproduce...
Steps to reproduce the behavior:
- Go to https://editor.swagger.io/?url=https://gist.githubusercontent.com/ponelat/7165747e273af0ecb6d4ff7f994eb4ac/raw/3be018fdccb33144bfa2ab4197d0a094a496481f/openapi.yml
- Expand the POST /pet (the only operation) operation
Expected behavior
Validation errors occur, similar to this one...
Screenshots
No validation errors, but the following is shown.
Additional context or thoughts
Not sure if this is a regression or a feature request