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

Provide better validation error message for uploaded spec #338

Open
amccormi opened this issue Feb 15, 2023 · 0 comments
Open

Provide better validation error message for uploaded spec #338

amccormi opened this issue Feb 15, 2023 · 0 comments

Comments

@amccormi
Copy link
Contributor

Is your feature request related to a problem? Please describe.
I tried to upload an OpenAPI spec file, but it was missing a version (was an empty string). The Upload Spec UI just says "Error in File", but the log message for APIClarity server is much more detailed: "spec validation failed. invalid info: value of version must be a non-empty string. spec validation failed""

Describe the solution you'd like
I'd like to see the more descriptive error make it's way into the UI to provide feedback about what's wrong with the spec file.

Describe alternatives you've considered
Until I found the log message, I had no idea what was wrong, so there wasn't an alternative.

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

1 participant