Spring Cloud Contract w/Swagger Request Validator
Issue #182
new
Thought you guys may find this interesting.
I have a POC of defining contacts in OA3 for Spring Cloud Contract, and wired in the Swagger Request Validator. Thus if the OA3 spec is violated, tests generated by SCC will fail.
See: https://github.com/springframeworkguru/sfg-payor-service
Comment out the ignored property on contract #3 in /src/main/resources/openapi.yml if you'd like to see a test failing on a missing required property.
Comments (3)
-
-
reporter Thanks!
The area I found lacking was determining / configuring what in the spec is getting validated.
I had a few challenges getting things to play nice with Spring Cloud Contact - but I think that was more typical learning curve & having an unusual use case.
-
Oh, you. It's using the Spring MVC adapter. ^^
- Log in to comment
Nice one! How did you find the setup/configuration experience? Always happy to hear how docs etc. can be improved.