kapi brand validate
kapi validate <file.yaml|->Validate a brand voice profile YAML and report structural problems.
Pass a file path, or "-" to read the profile from stdin. Validation reports:
- YAML syntax or type errors that stop the profile from parsing
- unknown fields (typo'd or unsupported keys)
- missing required fields (only 'name' is required)
- invalid enum values (tone formality/emotion/humor, style sentence_length/ person_pov/contractions, example category, rule severity)
- regex in style prohibited_patterns/required_patterns that does not compile
- vocabulary term rules with an empty term
Exit codes: 0 when the profile is valid, 1 when it has any problem. With --json the result is {"valid": bool, "errors": [{"field", "message"}]}.
Try it
Runs in your browser against a small sample file. Edit the command before running, or press Run to execute it as shown.
kapi brand validateFlags
| Flag | Type | Default | Description |
|---|---|---|---|
| --color | string | auto | colorize output: auto, always, never |
| --jq | string | filter JSON output through a jq expression (implies --json) | |
| --json | bool | false | Output in JSON format |
| --output-format | string | Output format: text (alias: table), json, yaml | |
| --text | bool | false | Output in text format (default) |
← Back to the Command Reference