-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSON Schema preview is broken #194
Comments
Welcome to AsyncAPI. Thanks a lot for reporting your first issue. Please check out our contributors guide and the instructions about a basic recommended setup useful for opening a pull request. |
@kbolino thanks for reporting this issue. |
So while debugging I found out that the isAsyncapi value could have caused the issue-> For asyncapi.yaml filesFor asyncapi.json filesFor non asyncapi (json) filesSo by just adding the following condition AsyncAPI preview will be disable for non asyncapi files ->Also for best practices would prefer using parenthesis here -> |
Should I open a pull request? |
🎉 This issue has been resolved in version 0.6.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Describe the bug
If I try to preview a JSON schema file which has no connection to AsyncAPI, I get a white page with black text that says only:
How to Reproduce
Create a file
test.schema.json
with the following content:Then click the "Preview AsyncAPI" button or Cmd+Shift+P (macOS) and select the option.
This appears to be identical to this issue from a similar plugin for IDEA.
Expected behavior
Either the preview option should be unavailable (because it doesn't work on this file type) or, even better, I should see a nice overview of the schema (assuming it was not trivial, like the example I gave).
The text was updated successfully, but these errors were encountered: