-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
oas3-schema rule output is hard to grok #210
Comments
To be entirely honest this data doesn't look all that useful for really understanding what is wrong with an OpenAPI document. I imagine this is a 3rd party lib being used for JSONSchema validation? Are you using that on 3.0 and 3.1 documents equally? As it could give false negatives on a 3.0 document as they didn't fully conform to the JSON Schema specification |
Schema errors are now flattened down to just the useful parts.
now schema violations are flattened, we can try and look them up from the JSONPath.
Schema errors are now flattened down to just the useful parts.
now schema violations are flattened, we can try and look them up from the JSONPath.
In version Try it out, and see how you feel about the validation messages now for schema failures. |
@TristanSpeakEasy ping |
Ah sorry I missed this will try it out tomorrow |
Thanks @daveshanley this looks a lot better 👍 some of the errors returned don't make sense in some situations but I may open separate bugs for these |
The oas3-schema rule seems to do a lot of the high level validation of a document, but I find the output hard to digest and it doesn't help guide a user towards a solution.
For example:
Here is some example output from a OpenAPI 3.0 document
/properties/paths/$ref
which I am unsure what it relates to and then references/definitions/Paths
which I believe is a Swagger reference instead of an OpenAPI 3 reference./properties/tags/uniqueItems
notation is unclear to what it is referring to.Would be good to see the errors produce by this rule improved as it does seem to catch a lot of validation issues not present in other rules
The text was updated successfully, but these errors were encountered: