Demo: a breaking API change caught by a contract
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
see a contract stop a breaking change. Prepares MID-045-LAB1.
Draft outline details
Step by step
- Show the consumer test in
ordersgenerating the contract againstinventory. - Publish the contract and run provider verification: green.
- Planned mistake: in
inventory, renameavailabletoquantityfor "clarity". - Run the provider build: verification fails and names the missing field and the consumer.
- Fix: keep
available, addquantity, and plan the migration in two steps. - Run the property tests on the Order aggregate as a final check.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.