Timbo
07/21/2022, 3:03 AM./pact/bin/pactflow publish-provider-contract \
"openapi/v0/openapi.yaml" \
--broker-token=<token> \
--broker-base-url=<https://adae.pactflow.io> \
--specification=oas \
--provider "messaging-api" \
--provider-app-version 12345\
--branch cdc \
After I ran the above, it published the openapi spec and also validated the consumer contract but
I also noticed the provider contract (self verification) was not done. That's the piece I am a bit confused about.
Our openapi spec is manually generated and we use pytest to validate it.
How can I get the provider contract (openapi) to be validated in pactflow as well? I saw the below args for the CLI but I am not quite sure how to use them.
--verification-exit-code=EXIT_CODE \
--verification-results REPORT_PATH \
--verification-results-content-type REPORT_CONTENT_TYPE \
--verifier VERIFIER
Is it even necessary to do the provider contract self validation in pactflow if we already have tests that validate the openapi spec?
I am also contemplating using dredd maybe to validate our openapi spec. I am looking for a bit of guidance, best practice etc. Any help is greatly appreciated.