@sourcemeta/jsonschema 7.2.1 → 7.2.3

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
@@ -104,7 +104,7 @@ brew install sourcemeta/apps/jsonschema
104
104
  Where `X.Y.Z` is replaced with the desired version. For example:
105
105
 
106
106
  ```yaml
107
- - uses: sourcemeta/jsonschema@v7.2.1
107
+ - uses: sourcemeta/jsonschema@v7.2.3
108
108
  # Then use as usual
109
109
  - run: jsonschema fmt path/to/schemas --check
110
110
  ```
@@ -131,22 +131,15 @@ latest pre-built binaries, which you can run as follows:
131
131
 
132
132
  ### From Dockerfile
133
133
 
134
- You can compile the JSON Schema CLI inside a container and run it with Docker
135
- as follows:
134
+ Starting from v7.2.1, we publish a Docker image to GitHub Packages (`amd64` and
135
+ `arm64`), which you can use as follows:
136
136
 
137
137
  ```sh
138
- docker build -t jsonschema .
138
+ docker run --interactive --volume "$PWD:/workspace" \
139
+ ghcr.io/sourcemeta/jsonschema:vX.Y.Z lint --verbose myschema.json
139
140
  ```
140
141
 
141
- Then, you run the JSON Schema CLI by mounting the desired directory as
142
- `/workspace` as follows:
143
-
144
- ```sh
145
- docker run --interactive --volume "$PWD:/workspace" jsonschema lint --verbose myschema.json
146
-
147
- # You can optionally add this to your .alias (or similar) file:
148
- # alias jsonschema="docker run --interactive --volume \"$PWD:/workspace\" jsonschema"
149
- ```
142
+ Replace `vX.Y.Z` with your desired version. You can mount any directory as `/workspace`.
150
143
 
151
144
  > [!WARNING]
152
145
  > Make sure to NOT allocate a pseudo-TTY when running the CLI through Docker
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.1",
3
+ "version": "7.2.3",
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": {