Skip to content

mochi schema validate ​

Validate flow files and workspace configs against their schemas.

Synopsis ​

Validate one or more flow files or workspace configuration files against their JSON schemas. File type is auto-detected from the filename (*.flow for flow files, flow.yaml for workspace configs). Use --type to override auto-detection. Use --strict to also check for unknown keys.

shell
mochi schema validate FILE... [flags]

Options ​

FlagTypeDescription
-h, --helphelp for validate
-o, --outputstringOutput format. One of: yaml, json, or tui.
--strictAlso check for unknown keys not defined in the schema
--typestringFile type to validate as (flowfile, workspace, config, template). Auto-detected if omitted.

Options inherited from parent commands ​

FlagTypeDescription
-L, --log-levelstringLog verbosity level (debug, info, fatal) (default "info")
--syncSync flow cache and workspaces

See also ​

  • mochi schema — Validate flowfiles and workspace configs against their schemas.