Documentation
¶
Overview ¶
Package outputschema names the published JSON Schemas that describe what each command prints under --json. The schemas themselves are generated by tools/schemagen from the types each command package declares in OutputTypes.
Index ¶
Constants ¶
const BaseURL = "https://sergiught.github.io/openfga-cli/schemas/output/"
BaseURL is where the generated schemas are published.
const EnvelopePath = "error"
EnvelopePath is the pseudo command path of the error envelope; its schema is error.v1.json.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handwritten ¶
type Handwritten struct{}
Handwritten marks an output whose schema is a hand-written file under tools/schemagen/handwritten/<FileName(path)> (used for map[string]any outputs and outputs that vary by mode, such as --dry-run).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package outputschematest validates command output against the committed JSON Schema files, so each command package can prove its schema describes exactly what --json prints.
|
Package outputschematest validates command output against the committed JSON Schema files, so each command package can prove its schema describes exactly what --json prints. |