validate command

Validate a lexicon JSON file against the expected schema.

malarky validate <file.json> [options]

Options

Option Short Description
--json   Output validation result as JSON
--help -h Show help

Exit codes

Code Meaning
0 Valid lexicon (may have warnings)
1 Invalid lexicon or file error

Examples

Human-readable output

malarky validate ./my-lexicon.json

Output:

Lexicon is valid.
Warnings:
  - termSets.noun.tech: No terms have weights assigned

JSON output

malarky validate ./my-lexicon.json --json
{
  "valid": true,
  "errors": [],
  "warnings": [
    {
      "path": "termSets.noun.tech",
      "message": "No terms have weights assigned",
      "severity": "warning"
    }
  ]
}

See also


Back to top

Malarky © 2026. Distributed under the MIT License.

This site uses Just the Docs, a documentation theme for Jekyll.