NEWPractise supported commands in browser simulations, alongside the lesson.Try a browser practice exercise.Try a lab♥ Codelivly is 100% free, no paywall. If it helped you, chip in to keep it running.100% free. Help keep it so.Support us
Preview · 35 min
Why list routes, exports and error bodies need their own field checks, and how to compare them with the policy without collecting more data than the test needs.
A detail route is the one every developer tests. Somebody opens an invoice, looks at the fields, and decides they are right. The list that shows the same invoice among twenty-four others, the CSV export that a bookkeeper downloads once a month and the error that comes back when something goes wrong are built later, often by other people, and often from different code. Each of them can carry a field that the detail route would never send.
That is the reason this lesson exists. The field policy has a rule for each surface, and your notes should have a row for each. A clean detail route is a result for the detail route. It says nothing about the three surfaces beside it.
Create a free account to unlock the rest of this task, complete tasks, and earn Rep.
Sign in