nullability
Whether a field may hold null, an explicit no value, and how that differs from the field being absent.
In more detail
Clients treat a missing field and a null field differently, so the contract must say which can happen. JSON Schema in OpenAPI 3.1 expresses it by allowing the null type.
Related terms
- JSON Schema — A standard vocabulary for describing the allowed shape of JSON data: which fields exist, their types, which are required and what values are allowed.
- additive change — Evolving an API only by adding things, such as a new optional field or operation, while everything existing keeps its meaning.
Taught in
- Versioning APIs — Modern API Architecture: REST, GraphQL & gRPC