Skip to content
Ameen Abozaid
Planned lessonMID-045-L06

Demo: a breaking API change caught by a contract

  • Lesson 6 of 6
  • Mid-level
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

  1. Show the consumer test in orders generating the contract against inventory.
  2. Publish the contract and run provider verification: green.
  3. Planned mistake: in inventory, rename available to quantity for "clarity".
  4. Run the provider build: verification fails and names the missing field and the consumer.
  5. Fix: keep available, add quantity, and plan the migration in two steps.
  6. Run the property tests on the Order aggregate as a final check.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.