pact-python icon indicating copy to clipboard operation
pact-python copied to clipboard

Support OpenAPI document validator for requests

Open francbartoli opened this issue 5 years ago • 3 comments

Any plan to support the OpenAPI spec like this repo https://bitbucket.org/atlassian/swagger-request-validator/src/master/swagger-request-validator-pact/?

francbartoli avatar Jul 17 '20 15:07 francbartoli

What is the actual ask here? We have discussed how we support OAS better but what is it that you want pact to be able to do? We are currently discussing next features in the RFC at https://github.com/pact-foundation/pact-specification/issues/71 perhaps you could articulate further there.

Also see our docs, there are some points about OAS you should be aware of first.

mefellows avatar Jul 17 '20 22:07 mefellows

@mefellows I've read this before https://docs.pact.io/faq/convinceme#but-i-use-swaggeropenapi which suggests using the above plugin from Atlassian and lead me to ask if there was a similar attempt (or plan to have) in python. Is there anything else in the docs that I missed?

francbartoli avatar Jul 18 '20 06:07 francbartoli

Not that I'm aware of, but perhaps it's worth discussing in the RFC how better Swagger support could be integrated? I, along with other colleagues, have been thinking about it.

As an aside, https://bitbucket.org/atlassian/swagger-mock-validator/src/master/ may be useful for you and should work with your Pact setup right now.

mefellows avatar Jul 18 '20 06:07 mefellows

This doesn't feel like it should be a feature of pact-python exclusively, it should either be a separate package, or considered as part of the pact-ecosystem.

Just to the time stamps, I am closing this and would request that it be raised on https://pact.canny.io/search?search=swagger if its still a feature you or the community are after - I've added a search anchor to previous discussions about swagger there

YOU54F avatar May 03 '23 17:05 YOU54F