Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Json Schema Processor

Purpose

Validates JSON schema files by checking that every object’s propertyOrdering array exactly matches its properties keys.

How It Works

Discovers .json files in the project (excluding common build tool directories), parses each as JSON, and recursively walks the structure. At every object node with "type": "object", if both properties and propertyOrdering exist, it verifies that the two key sets match exactly.

Mismatches (keys missing from propertyOrdering or extra keys in propertyOrdering) are reported with their JSON path. Files that contain no propertyOrdering at all pass silently.

This is a pure-Rust checker — no external tool is required.

Source Files

  • Input: **/*.json
  • Output: none (checker)

Configuration

[processor.json_schema]
args = []                                    # Reserved for future use
extra_inputs = []                            # Additional files that trigger rebuilds when changed
KeyTypeDefaultDescription
argsstring[][]Reserved for future use
extra_inputsstring[][]Extra files whose changes trigger rebuilds