-
-
Notifications
You must be signed in to change notification settings - Fork 129
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
Understanding the opinionated nature of this library #633
Comments
Are you sure it's not indentation / |
Hey @MikeRalphson. I don't believe there are any mismatches there, if i copy and paste the first example into runkit.com as:
It doesn't complain about mismatching brackets. I'm seeing a similar issue from a user of my library here: JaredCE/serverless-openapi-documenter#89 Where type is not defined in the object but in the I'm messing about right now, but if i get time later i'll try and put together a small reproducible... |
I wonder if it's the presence of |
"oas-validator": "^5.0.8", |
this is a reproducible, but runkit.com is terrible at outputting the error, so you might want to run it locally: |
I've corrected the OpenAPI syntax and confirmed that it is the presence of |
One thing you could do is set |
Checklist
Detailed Description
I'm trying to understand the opinionated nature of the validator library. It seems like it forces some things on to you like:
will fail because it is missing a
type
field, even though the specs don't seem to suggest it's required. Equally if i try to massage an if/then/else into a valid draft-04 from:to
it will complain that
needs to be in its own schema components reference.
Other stuff
The text was updated successfully, but these errors were encountered: