-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Fails when document doesn't contain paths #190
Comments
I see there are other similar bugs. |
Hi @Johnlon ! You are right, an NPE is always a software error. I will need to check where it comes from because it depends who made the assumption. Either it's I don't have a lot of time these days + having problems with my eyes/headache so I don't know when I'll be able to look at this but if you have time to create a PR, I will try to look at it quickly. |
Isn't the role of the |
@gervaisb Yes, at a higher level, you are right. The thing is that we are using
|
Do we have to throw an exception or just no trying to validate the path? As written by @jmini in #93; "at least one of paths, components or webhooks" is required. One user may want to validate the style of a webhooks only specification. From a quick test, it seems that |
Hi any progress? Thanks |
Since this is fixed in #251 I'm closing this. |
Describe the bug
Fails with an NPE if the OAS is missing a paths section
To Reproduce
Validate a doc without "paths"
Expected behavior
The library should report the OAS as invalid due to lack of a key feature
Additional context
I expect the library is equally lacking in assumptions it makes about other OAS features that might be missing..
A NPE is always a software error.
The text was updated successfully, but these errors were encountered: