Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
JSON Schema Validation: Tools for validating JSON schemas themselves, validating JSON files against schemas, and auto-validating files against their $schema reference
Version: v0.1.0
Install: /plugin install json-schema@mearman
Validate a JSON file against the schema referenced in its $schema property. This is useful for self-describing JSON documents that declare their own schema.
npx tsx scripts/check.ts <json-file> [options]
| Argument | Required | Description |
|---|---|---|
json-file | Yes | Path to the JSON file with $schema property |
| Option | Description |
|---|---|
--all-errors | Report all errors, not just the first |
--no-cache | Bypass cache when fetching remote schemas |
--strict | Enable strict mode validation |
--verbose | Show detailed validation output |
--format | Output format: text (default), json |
Valid JSON:
Valid
Schema: https://json-schema.org/draft/2020-12/schema
File: my-schema.json
Invalid JSON:
Invalid (2 errors)
Schema: ./schemas/config.schema.json
1. /settings/timeout: must be number
2. /settings/retries: must be >= 0
No schema reference:
Error: No $schema property found in config.json
Hint: Use schema-validate to validate against a specific schema
npx tsx scripts/check.ts config.json
npx tsx scripts/check.ts config.json --all-errors
npx tsx scripts/check.ts config.json --no-cache --verbose
Run from the json-schema plugin directory: ~/.claude/plugins/cache/json-schema/
The $schema property can reference:
Remote URLs - Fetched and cached (24h TTL)
{ "$schema": "https://json-schema.org/draft/2020-12/schema" }
Local file paths - Resolved relative to the JSON file
{ "$schema": "./schemas/config.schema.json" }
Absolute paths
{ "$schema": "/Users/joe/schemas/config.schema.json" }
| Schema URI | Description |
|---|---|
https://json-schema.org/draft/2020-12/schema | JSON Schema Draft 2020-12 |
https://json-schema.org/draft/2019-09/schema | JSON Schema Draft 2019-09 |
http://json-schema.org/draft-07/schema# | JSON Schema Draft 7 |
http://json-schema.org/draft-06/schema# | JSON Schema Draft 6 |
http://json-schema.org/draft-04/schema# | JSON Schema Draft 4 |
Remote schemas are cached for 24 hours using the OS temporary directory. Use --no-cache to bypass caching and fetch fresh schemas.
schema-meta to validate that a schema is well-formedschema-validate to validate JSON against an arbitrary schema fileValidate that a JSON Schema document is itself a valid schema according to the JSON Schema specification.
npx tsx scripts/meta-validate.ts <schema-file> [options]
| Argument | Required | Description |
|---|---|---|
schema-file | Yes | Path to the JSON Schema file to validate |
| Option | Description |
|---|---|
--draft=VERSION | JSON Schema draft version (draft-04, draft-06, draft-07, 2019-09, 2020-12). Default: auto-detect |
--strict | Enable strict mode (additional validation rules) |
--verbose | Show detailed validation information |
Valid schema:
Valid JSON Schema (draft-2020-12)
Keywords: 5
Definitions: 2
Invalid schema:
Invalid JSON Schema
Error: "type" must be a string or array
Path: /properties/name/type
npx tsx scripts/meta-validate.ts schema.json
npx tsx scripts/meta-validate.ts schema.json --draft=draft-07
npx tsx scripts/meta-validate.ts schema.json --strict --verbose
Run from the json-schema plugin directory: ~/.claude/plugins/cache/json-schema/
The script auto-detects the JSON Schema draft version from:
$schema keyword in the documentSupported drafts:
draft-04 - JSON Schema Draft 4draft-06 - JSON Schema Draft 6draft-07 - JSON Schema Draft 72019-09 - JSON Schema Draft 2019-092020-12 - JSON Schema Draft 2020-12 (default)When --strict is enabled, additional validations are performed:
$schema declarationschema-validate to validate JSON data against a schemaschema-check to validate a JSON file against its embedded $schemaValidate JSON data files against a JSON Schema definition.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub mearman/marketplace --plugin json-schemaPlugins from other owners that cover similar ground