Marlin Dalpozzo
07/28/2025, 8:38 PMcan-i-deploy in our CI/CD system to check the compatibility of our Provider with our Consumer contracts. We would like detailed information about the contract validation failure (i.e. what specific request properties don't match etc), but unfortunately it seems like the default response from can-i-deploy lacks that information and links to the /contracts/bi-directional/provider/<provider>/version/<version>/consumer/<consumer>/version/<version>/cross-contract-verification-results page in the pactflow ui. There is documentation that implies that this information can be retrieved programmatically via the pactflow API
https://docs.pactflow.io/docs/bi-directional-contract-testing/compatibility-checks/#api-resources
crossContractVerificationResults contains the information we want
We have tried various ways to make requests to that url, but couldn't get it to work. We always receive {"title":"404 Not Found","type":"<https://problems-registry.smartbear.com/not-found>","detail":"The requested document was not found on this server.","status":404}
How can we retrieve the contract verification results programmatically?Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Marlin Dalpozzo
07/29/2025, 1:01 AMMarlin Dalpozzo
07/29/2025, 1:03 AMResponse body is incompatible with the response body schema in the spec file: must NOT have additional properties - new
interactions[0].response.body.layout_data.taskbar_content.1.items.0 = {"display_name":"Work Order","id":"buffered_work_order","new":null,"source":"legacy_app","target":"_blank","url":"/buffered_reports/work_order?customize=true"}
i can see this information in the ui at
contracts/bi-directional/provider/<provider-name>/version/<provider-version>/consumer/<consumer-name>/version/<consumer-version>/cross-contract-verification-results
but need this to be returned from can-i-deploy or be able to retrieve this info from some other APIMarlin Dalpozzo
07/29/2025, 1:04 AMMarlin Dalpozzo
07/29/2025, 1:08 AMMatt (pactflow.io / pact-js / pact-go)
/can-i-deploy endpoint this week that will include links to public APIs to fetch this info.Justin Maher
07/30/2025, 5:58 AM