Featured answer
Give me an overview of jsonschema
jsonschema is a validator that checks JSON documents against JSON Schema definitions, compiling a schema into a reusable Validator that tests each instance and reports whether it conforms. The core is written in Rust, and the project also provides Python and Ruby bindings and a command line interface. Most of the 673 files sit under the crates directory, which holds 466 of them, and the Application layer accounts for 364 files, with Data, Config and Docs & Tooling layers making up the rest. The library source is crates/jsonschema/src/lib.rs, and the canonical files crates/jsonschema/src/canonical/parse.rs and crates/jsonschema/src/canonical/algebra.rs support the experimental schema canonicalization feature. The CLI entry point is crates/jsonschema-cli/src/main.rs, which provides the validate command, where a schema and instance go in and a validation outcome or Structured Output v1 report comes out in flag, list or hierarchical form. To start reading, open crates/jsonschema/src/lib.rs for the library and crates/jsonschema-cli/src/main.rs for the command line tool.
| Layer | Files |
|---|---|
| CLI | 1 |
| Service | 2 |
| Data | 21 |
| Config | 17 |
| Utility | 1 |
| Application | 364 |
| Docs & Tooling | 34 |
Basis: Inferred · knowledge graph· as of 5632f84