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

[FEATURE] Warn on missing fields #338

Closed
dblock opened this issue Jun 12, 2024 · 0 comments · Fixed by #342
Closed

[FEATURE] Warn on missing fields #338

dblock opened this issue Jun 12, 2024 · 0 comments · Fixed by #342
Labels
enhancement New feature or request

Comments

@dblock
Copy link
Member

dblock commented Jun 12, 2024

Is your feature request related to a problem?

Coming from #336 we are adding a missing field to a response body.

What solution would you like?

  1. Spec testing should warn that the response contains a field that is not present in the spec.
  2. It should be possible to run the tester with a flag that turns the warning in (1) into an error.

I believe this is not possible with AJV today, opened ajv-validator/ajv#2453.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant