schema validation

Checking incoming data against a declared shape, such as allowed field names and types, and rejecting anything that does not fit.

In more detail

Declaring an input schema per operation and forbidding extra properties at the parser makes the safe shape the default for every endpoint. Handlers no longer have to remember to drop unknown fields.

Related terms

Taught in

References