SpringMVC: Give user better control over "valid" requests
Issue #55
resolved
Quote James Navin on the SwaggerValidationInterceptor:
I wonder if we could do better here. Perhaps we could look at the message level - if it is ERROR then we fail the request here, if it is WARN or below we log the message and let the request through.
That would give users control over this behavior via the message level mechanism (e.g. it may be desired to fail the request if it isnt in the spec). You could set the level to WARN by default when you construct the validator (see the Pact adapter for an example), and mention in the README that users can enable ERROR if they want it to fail.
Comments (2)
-
reporter -
- changed status to resolved
Available in v1.4.7
- Log in to comment
After understanding this - it is a very good idea.![:thumbsup: 👍](https://pf-emoji-service--cdn.us-east-1.prod.public.atl-paas.net/standard/a51a7674-8d5d-4495-a2d2-a67c090f5c3b/48x48/1f44d.png)