Skip to content
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

Confusing error message on invalid OpenAPI files #84

Closed
DSotnikov opened this issue Oct 7, 2020 · 1 comment
Closed

Confusing error message on invalid OpenAPI files #84

DSotnikov opened this issue Oct 7, 2020 · 1 comment

Comments

@DSotnikov
Copy link
Contributor

DSotnikov commented Oct 7, 2020

I tried doing a security audit on an OpenAPI file that had formatting issues and got this error message: "Failed to audit: Error: Failed to parse JSON: InvalidSymbol at offset 9168, CommaExpected at offset 9173, ColonExpected at offset 19875"

It would have been much nicer if instead it would give me the line numbers. It actually does put the issues in the Problems panel - which is very helpful, but took me time to find that out. Maybe you could update the text in the error message to mention that.

vfateev added a commit that referenced this issue Nov 5, 2020
Fix Confusing error message on invalid OpenAPI files #84
@vfateev
Copy link
Collaborator

vfateev commented Nov 5, 2020

Security audit and preview icons are now disabled if selected openapi file contains errors (formatting issues).
(The same behavior as in Idea and Eclipse plugins).

@vfateev vfateev closed this as completed Nov 5, 2020
ak1394 pushed a commit that referenced this issue Jan 24, 2022
Fix Confusing error message on invalid OpenAPI files #84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants