Files
komorebi/Cargo.toml
T
LGUG2Z 2e3913c325 test(jsonschema): add json schema test suite compat tests
Add comprehensive integration tests using the official JSON-Schema-Test-Suite
draft2020-12 examples to ensure the CLI handles all valid JSON Schema constructs
without crashing.

Changes:
- Add 80 fixture files from JSON-Schema-Test-Suite draft2020-12
- Add parallelized integration test that runs CLI against all 448 schemas
- Normalize non-standard $ref patterns (root refs, JSON pointers, external URIs)
- Decode URL-encoded and JSON pointer escaped characters in $ref paths
- Embed type usages directly in $defs to avoid Tera lookup issues with
  special characters in definition names
- Handle missing $defs gracefully in template rendering

The test suite runs in ~5 seconds using Rayon for parallel execution.
2025-12-22 10:04:47 -08:00

34 lines
670 B
TOML

[package]
name = "schemars-docgen"
version = "0.1.0"
edition = "2024"
description = "Generate HTML documentation from schemars::Schema objects"
license-file = "LICENSE.md"
[lib]
name = "schemars_docgen"
path = "src/lib.rs"
[[bin]]
name = "schemars-docgen"
path = "src/main.rs"
[dependencies]
schemars = "1"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tera = "1"
pulldown-cmark = "0.13"
clap = { version = "4", features = ["derive"] }
thiserror = "2"
struct_iterable = "0.1"
[build-dependencies]
lightningcss = "1.0.0-alpha.68"
struct_iterable = "0.1"
serde = { version = "1", features = ["derive"] }
[dev-dependencies]
regex = "1"
rayon = "1"