vandana wadhwani
05/03/2023, 4:29 PMYousaf Nabi (pactflow.io)
pactflow publish-provider-contract \
products.yaml \
--provider test \
--provider-app-version 1.0.1-some-sha \
--branch test \
--content-type application/yaml \
--verification-exit-code=0 \
--verification-results products.yaml \
--verification-results-content-type application/yaml \
--verifier test
I'm cheating here and just sending the OAS as the verification report.
I assume the folder you are in, contains both the swagger.json and and report.txt?
I wonder if the pact ruby standalone is looking in its path where it lives, rather than where your pact file lives, and needs an absolute path, I wouldn't have thought that would be the case but will test out as I have a windows machine here
Also top tip
` three backs (without the spaces) will provide a code block for you, that you can paste code snippets into 🙂
Makes it nicer on everyones eyesYousaf Nabi (pactflow.io)
../pact/bin/pactflow.bat
means its looking outside the folder
or did you mean to write ./pact/bin/pactflow.bat
with your code being in x folder and pact
being in the same folder as your code?vandana wadhwani
05/03/2023, 4:42 PMYousaf Nabi (pactflow.io)
dir
in your console, do you see your pact
folder and the swagger.json
and results.txt
?vandana wadhwani
05/03/2023, 4:43 PMvandana wadhwani
05/03/2023, 4:44 PMvandana wadhwani
05/03/2023, 4:44 PMYousaf Nabi (pactflow.io)
application/yaml
is fine for a valid json document. Feel free to private message me your documents and I'll test on my windows and mac machines.
Could you move the pact
folder into the folder where your code is (where the swagger.json
and results.txt
reside)vandana wadhwani
05/03/2023, 4:55 PMYousaf Nabi (pactflow.io)
Yousaf Nabi (pactflow.io)