@sourcemeta/jsonschema 7.2.3 → 7.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,6 +4,7 @@
4
4
  [![NPM Version](https://img.shields.io/npm/v/@sourcemeta/jsonschema)](https://www.npmjs.com/package/@sourcemeta/jsonschema)
5
5
  [![GitHub Actions](https://github.com/sourcemeta/jsonschema/actions/workflows/test.yml/badge.svg)](https://github.com/sourcemeta/jsonschema/actions)
6
6
  [![GitHub contributors](https://img.shields.io/github/contributors/sourcemeta/jsonschema.svg)](https://github.com/sourcemeta/jsonschema/graphs/contributors/)
7
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)](https://github.com/sourcemeta/jsonschema/blob/main/.pre-commit-hooks.yaml)
7
8
 
8
9
  The command-line tool for working with [JSON Schema](https://json-schema.org),
9
10
  the world most popular schema language. It is a comprehensive solution for
@@ -61,6 +62,7 @@ following pages describe each command in detail. Additionally, running the JSON
61
62
  Schema CLI without passing a command will print convenient reference
62
63
  documentation:
63
64
 
65
+ - [`jsonschema version`](./docs/version.markdown)
64
66
  - [`jsonschema validate`](./docs/validate.markdown)
65
67
  - [`jsonschema metaschema`](./docs/metaschema.markdown) (ensure a schema is valid)
66
68
  - [`jsonschema test`](./docs/test.markdown) (write unit tests for your schemas)
@@ -73,6 +75,12 @@ documentation:
73
75
 
74
76
  Note that YAML is supported in most commands!
75
77
 
78
+ We also support a growing amount of [`pre-commit`](https://pre-commit.com)
79
+ hooks. Take a look at the
80
+ [`.pre-commit-hooks.yaml`](https://github.com/sourcemeta/jsonschema/blob/main/.pre-commit-hooks.yaml)
81
+ configuration file for what's available right now. Keep in mind that to use the
82
+ `pre-commit` hooks, you need to install the CLI first.
83
+
76
84
  ***
77
85
 
78
86
  If you are looking for more of a tutorial and overview of what the CLI is
@@ -104,7 +112,7 @@ brew install sourcemeta/apps/jsonschema
104
112
  Where `X.Y.Z` is replaced with the desired version. For example:
105
113
 
106
114
  ```yaml
107
- - uses: sourcemeta/jsonschema@v7.2.3
115
+ - uses: sourcemeta/jsonschema@v7.4.0
108
116
  # Then use as usual
109
117
  - run: jsonschema fmt path/to/schemas --check
110
118
  ```
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sourcemeta/jsonschema",
3
- "version": "7.2.3",
3
+ "version": "7.4.0",
4
4
  "description": "The CLI for working with JSON Schema. Covers formatting, linting, testing, and much more for both local development and CI/CD pipelines",
5
5
  "main": "cli.js",
6
6
  "bin": {