Repository navigation
Replies: 1 comment 2 replies
|
@ebuildy That would be great! However, the They also provide These hooks are particularly useful because they already include the appropriate built-in schemas, CLI arguments, and file-matching patterns, eliminating the need to configure each validator manually. Your proposal currently addresses only |
Uh oh!
There was an error while loading. Please reload this page.
Summary
There's no builtin hook to validate YAML/JSON/TOML files against a JSON Schema. The standard answer today is python-jsonschema/check-jsonschema, which works but pulls a full Python toolchain into an otherwise Rust-native setup. I'd like to propose
check-jsonschemaas a builtin, and I'm happy to implement it.Not sure about performance but Rust should be faster!
Proposed behaviour
check-jsonschema, file-based (unlikecheck-signed-commit):check-yaml/check-json/check-toml, into aserde_json::Value.jsonschemacrate (drafts 4 → 2020-12, actively maintained), then validate every file.I can propose a PR!
Cheers
All reactions