You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BaseLayout is rendering EditorPreviewAsyncAPI using selector: selectIsContentTypeAsyncAPI2 altough component would be able to render AsyncAPI 3.x.x as well.
To reproduce...
Try to render any AsyncAPI 3.x.x using StandaloneLayout.
See error: 'Unable to render this definition'.
Expected behavior
Properly rendered definition with EditorPreviewAsyncAPI plugin.
Screenshots
Additional context or thoughts
Btw. current error details are a little bit misleading:
Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.x.y (for example, openapi: 3.1.0).
Maybe it should be addressed to be changed/improved. In my opinion it would be better to be less specific, but not suggest that only swagger/openapi is supported.
The text was updated successfully, but these errors were encountered:
Rzepin
added a commit
to Rzepin/swagger-editor
that referenced
this issue
Feb 9, 2025
Q&A (please complete the following information)
Content & configuration
Example Swagger/OpenAPI definition:
e.g. https://raw.githubusercontent.com/asyncapi/spec/refs/heads/master/examples/streetlights-kafka-asyncapi.yml
Swagger-Editor configuration options:
Describe the bug you're encountering
BaseLayout
is renderingEditorPreviewAsyncAPI
using selector:selectIsContentTypeAsyncAPI2
altough component would be able to render AsyncAPI 3.x.x as well.To reproduce...
Expected behavior
Properly rendered definition with EditorPreviewAsyncAPI plugin.
Screenshots
Additional context or thoughts
Btw. current error details are a little bit misleading:
Maybe it should be addressed to be changed/improved. In my opinion it would be better to be less specific, but not suggest that only swagger/openapi is supported.
The text was updated successfully, but these errors were encountered: