YJ Schema Validator
1. Description
YJ Schema Validator is a lightweight Java CLI tool for validating YAML and JSON files against JSON Schema definitions (drafts 2019-09/2020-12). Built with Spring Boot, Jackson, and NetworkNT.
2. Features
-
Dual Format Support: Validates YAML and JSON files seamlessly.
-
Remote Schemas: Fetch via HTTP/HTTPS (with timeout & SSL options).
-
Flexible Outputs: Console (colored), JSON, YAML, JUnit, SARIF for code scanning, and an LLM-friendly report for agents.
-
Schema Autodetection: Path-based lookup via the JSON Schema Store catalog when no schema is given.
-
GitHub Action: Reusable action runs the validator in CI with no Java setup.
-
STDIN Support: Pipe content directly to the validator using
stdinor-filename. -
Batch Processing: Multiple files; exits 0/1 for success/failure.
-
Schema Override: Ignore embedded
$schema. -
Java 17+; fat JAR ready.
|
Supported drafts: V2019-09 and V2020-12 only. For older drafts, see NetworkNT docs. |
3. License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
4. Acknowledgments
-
Built on NetworkNT JSON Schema Validator.
-
Thanks to contributors: List here.