Case File: Never Trust the Body
A new-parcel service accepts any request body and sometimes stores nonsense. Write a validator that reports the errors of a body in a fixed format and never crashes, with the traps that real services get wrong: True is a number in Python, 3.0 is a float, text is not a number, and None is present but wrong. The request bodies are generated for you alone.
Case File: Never Trust the Body
A new-parcel service accepts any request body and sometimes stores nonsense. Write a validator that reports the errors of a body in a fixed format and never crashes, with the traps that real services get wrong: True is a number in Python, 3.0 is a float, text is not a number, and None is present but wrong. The request bodies are generated for you alone.
In this lesson:
- api
- validation
- python
- security
- json
- case-file
This lesson is part of a paid plan
Upgrade to Pro to unlock this course, its labs and its exam.
View Pricing Plans