Skip to main content
Use const to pin a field to a single allowed value.

Basic usage

Discriminator pattern

const is commonly used to tag branches in oneOf/anyOf schemas.