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

Example is not validated against the schema #520

Open
LasneF opened this issue Jul 9, 2024 · 0 comments
Open

Example is not validated against the schema #520

LasneF opened this issue Jul 9, 2024 · 0 comments

Comments

@LasneF
Copy link

LasneF commented Jul 9, 2024

vacuum is not able to detect that the sample provided does not respect the schema ( given the schema is not perfect)

here the issue is that the oneOf is wrong , as not discriminant enought

when leveraging a json schema validator the sample is set as invalid
I would expect that vacuum validate each sample toward the schema (at object or endpoint level)

given this API specification
sample.json

i would expect that the example is validated against the schema , and so here that there would be a warning , or even an error mentionning that the sample is wrong , please correct sample our double check your schema defintiion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants