> ## Documentation Index
> Fetch the complete documentation index at: https://typewall.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Validation CLI

> Validate JSON against a Python schema target

The CLI loads a trusted Python schema target and validates JSON from a file or standard input.

```shell theme={null}
typewall validate examples.cli.schema:User examples/cli/user.json
cat examples/cli/user.json | typewall validate --json examples.cli.schema:User -
```

Exit code `0` means success, `1` means validation failure, and `2` means invocation, target-loading, I/O, or JSON input failure.

> [!WARNING]
>
> Import targets execute Python code and must be trusted.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.