Hazem Borham
11/18/2022, 7:37 PMMatt (pactflow.io / pact-js / pact-go)
The initial contract definition is minimal as we dont want to overstate how we consume the API, however, as the frontend changes and consumes more fields from the backend’s api response, how can we be deliberate enough to always make sure the contract is up-to-date.If the consumer needs more fields from the response than they have defined in the contract, it should show up in the consumer test, as it should be a unit test of your API client. Any missing fields will not be present, and hopefully that should get picked up in that test. It’s harder to detect the reverse of this, obviously.
Hazem Borham
11/22/2022, 5:15 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)