Crates.io | boon |
lib.rs | boon |
version | 0.6.0 |
source | src |
created_at | 2023-02-17 11:04:49.058625 |
updated_at | 2024-05-30 09:22:02.065356 |
description | JSONSchema (draft 2020-12, draft 2019-09, draft-7, draft-6, draft-4) Validation |
homepage | |
repository | https://github.com/santhosh-tekuri/boon |
max_upload_size | |
id | 787481 |
size | 228,436 |
$schema
cycle$schema
urloptional/ecmascript-regex.json
)#
to install: cargo install boon-cli
or download it from releases
Usage: boon [OPTIONS] SCHEMA [INSTANCE...]
Options:
-h, --help Print help information
-q, --quiet Do not print errors
-d, --draft <VER> Draft used when '$schema' is missing. Valid values 4,
6, 7, 2019, 2020 (default 2020)
-o, --output <FMT> Output format. Valid values simple, alt, flag, basic,
detailed (default simple)
-f, --assert-format
Enable format assertions with draft >= 2019
-c, --assert-content
Enable content assertions with draft >= 7
--cacert <FILE> Use the specified PEM certificate file to verify the
peer. The file may contain multiple CA certificates
-k, --insecure Use insecure TLS connection
This cli can validate both schema and multiple instances.
It support both json and yaml files
exit code is:
1
if command line arguments are invalid.2
if there are errors