Software Engineer

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.

50 min

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

This lesson is part of the Pro plan. Upgrade to unlock the full lesson, the labs and the exam.

Upgrade Now

This lesson is part of a paid plan

Upgrade to Pro to unlock this course, its labs and its exam.

View Pricing Plans