Skip to content

Commit

Permalink
improve 'using a custom catalog' docs
Browse files Browse the repository at this point in the history
  • Loading branch information
chris48s committed Aug 19, 2024
1 parent deb6622 commit df8f9a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/docs/usage-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@ $ v8r feature.geojson --schema https://json.schemastore.org/geojson

Using the `--schema` flag will validate all files matched by the glob pattern against that schema. You can also define a custom [schema catalog](https://json.schemastore.org/schema-catalog.json). v8r will search any custom catalogs before falling back to [Schema Store](https://www.schemastore.org/).

```bash
$ cat > my-catalog.json <<EOF
{ "\$schema": "https://json.schemastore.org/schema-catalog.json",

```js title="my-catalog.json"
{ "$schema": "https://json.schemastore.org/schema-catalog.json",
"version": 1,
"schemas": [ { "name": "geojson",
"description": "geojson",
"url": "https://json.schemastore.org/geojson.json",
"fileMatch": ["*.geojson"] } ] }
EOF
```

```bash
$ v8r feature.geojson -c my-catalog.json
ℹ Found schema in my-catalog.json ...
ℹ Validating feature.geojson against schema from https://json.schemastore.org/geojson ...
Expand Down

0 comments on commit df8f9a3

Please sign in to comment.