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

Feat/response validation in ValidatorHandler #90

Merged
merged 6 commits into from May 17, 2019

Conversation

BalloonWen
Copy link
Contributor

related issue: #89
-Added response validation in validator handler.
-Added a config "validateResponse" in openapi-validator.yml to enable/disable response validation feature.
-When there's a validation error of response, it will only log the error. It cannot send the error back to the client because the response is already completed. Until we change the mechanism of sending a response, I think this is the only way.
-This feature is only suggested to be used in dev/sit environment due to multiple times duplicated serialization/deserialization.
-This feature should not affect any existing behaviours since it only adds a callback logging when the response completed.

@BalloonWen BalloonWen self-assigned this May 16, 2019
-added one method call interface for validation to use HttpServerExchange
-added test cases
@stevehu stevehu merged commit 0693558 into master May 17, 2019
@stevehu stevehu deleted the feat/response-validation-handler branch May 17, 2019 13:49
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.

None yet

3 participants