Bowtie
¶
Bowtie is a meta-validator of the JSON Schema specification, by which we mean it coordinates executing other validator implementations, collecting and reporting on their results.
It has a few parts:
a command line tool which can be used to access any of the 33 JSON Schema implementations integrated with it. Use it to validate any schema and instance against any implementation.
a report, accessible at https://bowtie.report/, showing how well each implementation complies with the specification and which tests they fail (if any)
a protocol which new implementations can integrate with in order to have their implementation be supported by Bowtie
It’s called Bowtie because it fans in lots of JSON then fans out lots of results: >·<
.
Looks like a bowtie, no?
Also because it’s elegant – we hope.
If you’re just interested in how implementations stack up against each other, you can find the most up to date report at https://bowtie.report/.
Installation¶
Via Homebrew (macOS or Linuxbrew)¶
Bowtie is available in a tap which is located here, and can be installed via:
brew install bowtie-json-schema/tap/bowtie
Manual Installation via PyPI¶
Bowtie is written in Python, and uses a container runtime to execute JSON Schema implementations, so you’ll need both Python and a suitable container runtime installed.
If you have no previous container runtime installed (e.g. Docker), follow the installation instructions for podman specific to your operating system. Ensure you’ve started a Podman VM if you are on macOS.
Then follow the uv installation process to install uv
, and finally use it to run Bowtie via:
uvx --from bowtie-json-schema bowtie --help
which should show you Bowtie’s help by invoking its command line interface.
You can install it so it is runnable via simply bowtie
by using uv tool install bowtie-json-schema
.
Further usage details of the command-line interface can be found here.