Skip to content

schema-invalid

Rung schema · correctness · default error

A record breaks its schema, such as a missing required field, an unknown key or a value of the wrong type.

Each record kind has a schema: the fields it must carry and the values they may take. A record outside its schema is a record other rules cannot read, and a misspelt key is silently ignored by everything that looks for the right spelling. Validating the shape up front means later rules can trust what they read.

Correct the field the finding names. gantry schema <kind> prints the schema of a record kind.

status: done # schema-invalid: must be one of proposed, ruled, superseded, retired