JSON Schema allOf Keyword

The value must match every listed schema.

Syntax

{"allOf": [{"type": "object"}, {"required": ["id"]}]}

Explanation

Use allOf to combine constraints and reusable definitions.