Skip to content

Commit

Permalink
Mention a more performant JSON validator (#241)
Browse files Browse the repository at this point in the history
It does users a disservice to direct them to `check-jsonschema` in the
first instance.

`check-jsonschema` is incredibly slow (probably because of Python
interpreter startup time) when run in a loop on multiple files.

---------

Signed-off-by: Andrew Pollock <andrewpollock@users.noreply.github.com>
  • Loading branch information
andrewpollock authored May 15, 2024
1 parent 719ef52 commit f5807ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@

This directory contains a JSON schema to validate OSV entries.

## Usage
## Example Usage

(Any [validator](https://json-schema.org/implementations#validators) can be used, these are a couple that are known to work)

```
$ go run github.com/neilpa/yajsv@latest -s schema.json osv_to_test.json
```

```
$ pip install check-jsonschema
Expand Down

0 comments on commit f5807ed

Please sign in to comment.