Spring Cloud Contract w/Swagger Request Validator

Issue #182 new
John Thompson created an issue

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)

  1. James Navin

    Nice one! How did you find the setup/configuration experience? Always happy to hear how docs etc. can be improved.

  2. John Thompson 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.

  3. Log in to comment