# JSONL record schemas

One JSON Schema (draft-07) for each compatibility line of each record type of
the `mission-control` JSONL output. A line is an object with the record version
`v` and one key that names the record type:

```json
{"v":"0.1.0","finding":{"severity":"error","rule":"decision-needs-owner","subject":"document","bundle":"design","path":"/decisions/0001.md","message":"The decision has no owner."}}
```

`<type>/0.1.json` describes the object under that key for every version
`0.1.x`. Before 1.0.0, a change of the minor part breaks compatibility and a
change of the patch part only adds optional fields. Each field has `x-since`, the
record version that added it. The top-level keys `v`, `seq`, `ts`, `run` and
`src` are reserved.

`tests/cli-laws` checks each generated record against its schema.
