Step 3 of 6 in What a lesson is made of
Sample data, read from content-sdk
When a save is refused
Ana saves Telling Time to the Half Hour with a long title, too many minutes, and the code TT-HOUR.
Each field has rules, and a save that breaks them is refused. The tools name every field rule it breaks at once, then check that the code is the lesson's own.
Try it: select each marked part, and read what Ana would be told.
Ana fixes the title and the minutes, saves again, and only then hears that TT-HOUR is taken. A tool can check the code before saving, so Ana hears it all at once.