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

strict/less-strict mode for validation #69

Open
karenetheridge opened this issue Dec 19, 2023 · 0 comments
Open

strict/less-strict mode for validation #69

karenetheridge opened this issue Dec 19, 2023 · 0 comments

Comments

@karenetheridge
Copy link
Owner

Used to check for things that aren't errors, but things we would lint for if they were compiletime instead of runtime recommendations:

  • (probably not..) - actual request or response headers that aren't covered by a definition in the spec document
  • query parameters that aren't covered ""

These are errors, but perhaps should be relaxed, given some config variable:

  • the operation (method/path combo) is not found in the specification. (presently an error, with 404 Not Found recommended)
  • path is found, but not the method (presently an error, with 405 Method Not Allowed recommended)
  • the request or response Content-Type isn't covered by a media-type definition in .../content/<media-type/... (presently an error, with 415 "Unsupported Media Type" recommended)
  • the response code isn't covered by anything in the 'responses' specification (which means 'default' wasn't included) (presently an error)
@karenetheridge karenetheridge changed the title strict mode for validation strict/less-strict mode for validation Dec 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant