Weave documentation
Schema Check

Commands

Single-directory JSON Schema identifier and reference checks.

Command

schema-check ./schemas

The optional first argument is the directory to walk; without it the default is schemas. Each .json file is parsed and checked for a string $id beginning with http:// or https://. Nested string $ref values must be fragment references beginning with #, or have one of those URL prefixes.

Success prints schema-check: OK. Detected JSON/identifier/reference errors are printed and return failure. The utility does not resolve remote references, check URL reachability, validate JSON instances against schemas, or verify full JSON Schema semantics. Directory traversal errors are currently filtered out by the walker, so success is not proof that every inaccessible file was inspected.

There are no validate, validate-dir, hash, fmt, pack, diff, show or list-schemas subcommands. Source: tools/schema-check/src/main.rs.

On this page