I have a question about the webhooks, if can-i-dep...
# pact-broker
j
I have a question about the webhooks, if can-i-deploy runs and triggers a pipeline webhook due to a missing verification and the provider version to validate is not the latest version, how will the provider know which version of itself to validate against? The scenario being that if you had a dev (v3), preprod (v2), prod (v1) environment and a consuming service was checking if it can deploy to preprod (after a successful dev (v3) validation and it did not have a verification against v2) then how would the payload to the provider pipeline be aware of the version it needed to use to validate with?
b
The provider version is passed in as a webhook parameter, which you will then need to map to the correct field in the request that triggers the build in your CI system.
j
Thanks