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

Express validator #3226

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

nichwall
Copy link
Contributor

@nichwall nichwall commented Aug 4, 2024

This PR adds an OpenAPI validator to the server. This validator uses the express-openapi-validator library which is added as a dev dependency. The validator will only run in dev environments if the user has removed the false check to prevent inadvertent errors due to requests and responses not matching the OpenAPI spec.

This was originally mentioned in #3094, but split up into 2 different PRs and had more time to test this validator.

Related to #1434

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

Successfully merging this pull request may close these issues.

1 participant