mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-30 20:24:09 +01:00
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.
34 lines
670 B
TOML
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"
|