We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Unlike input validation, responses should not be modified to comply with validation rules (e.g. casting a string to a number).
The text was updated successfully, but these errors were encountered:
Would it be a valid use case to allow response objects to be stripped by validator? Consider following scenario:
validation: { stripUnknown: true }
response: { schema: Joi... }
doc
reply(doc)
As of now, validation would succeed but the response would contain full set of keys, including those not matched by the validator.
This commit Qey@0bb2152 enables response modifications but they're not restricted to stripping.
Sorry, something went wrong.
Open a new issue requesting this feature. I'll consider it.
hueniverse
Successfully merging a pull request may close this issue.
Unlike input validation, responses should not be modified to comply with validation rules (e.g. casting a string to a number).
The text was updated successfully, but these errors were encountered: