
Examples
Changelog
Library Features
- [x] pass JSON-Schema-Test-Suite excluding optional(compare with other impls at bowtie)
- [x] [](https://bowtie-json-schema.github.io/bowtie/draft4.html)
- [x] [](https://bowtie-json-schema.github.io/bowtie/draft6.html)
- [x] [](https://bowtie-json-schema.github.io/bowtie/draft7.html)
- [x] [](https://bowtie-json-schema.github.io/bowtie/draft2019-09.html)
- [x] [](https://bowtie-json-schema.github.io/bowtie/draft2020-12.html)
- [x] detect infinite loop traps
- [x]
$schema
cycle
- [x] validation cycle
- [x] custom
$schema
url
- [x] vocabulary based validation
- [x] ECMA-262 regex compatibility (pass tests from
optional/ecmascript-regex.json
)
- [x] format assertions
- [x] flag to enable in draft >= 2019-09
- [x] custom format registration
- [x] built-in formats
- [x] regex, uuid
- [x] ipv4, ipv6
- [x] hostname, email
- [x] idn-hostname, idn-email
- [x] date, time, date-time, duration
- [x] json-pointer, relative-json-pointer
- [x] uri, uri-reference, uri-template
- [x] iri, iri-reference
- [x] period
- [x] content assertions
- [x] flag to enable in draft >= 7
- [x] contentEncoding
- [x] base64
- [x] custom
- [x] contentMediaType
- [x] application/json
- [x] custom
- [x] contentSchema
- [x] errors
- [x] introspectable
- [x] hierarchy
- [x] alternative display with
#
- [x] output
- [x] flag
- [x] basic
- [x] detailed
- [ ] custom vocabulary
CLI
to install: cargo install --example boon boon
```
Usage: boon [OPTIONS] SCHEMA [INSTANCE...]
Options:
-h, --help Print help information
-q, --quiet Do not print errors
-d, --draft Draft used when '$schema' is missing. Valid values 4,
6, 7, 2019, 2020 (default 2020)
-o, --output 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
```
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