Skip to main content
ancha schema prints JSON Schema (draft 2020-12) for every file you write for Ancha and every JSON output you parse from it.

Examples

The output is always JSON, with or without --json. With a kind it prints {"version": 1, "kind": "run_finished", "schema": {...}}; without, {"version": 1, "kinds": [...], "schemas": {...}}. version changes only when a shape changes incompatibly. Adding a field keeps it.

Exit codes

0. An unknown kind exits 2:
Output