@sourcemeta/jsonschema 7.2.0 → 7.2.2

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
@@ -1,7 +1,7 @@
1
1
  ![JSON Schema](./assets/banner.png)
2
2
 
3
- [![NPM Version](https://img.shields.io/npm/v/@sourcemeta/jsonschema)](https://www.npmjs.com/package/@sourcemeta/jsonschema)
4
3
  [![GitHub Release](https://img.shields.io/github/v/release/sourcemeta/jsonschema)](https://github.com/sourcemeta/jsonschema/releases)
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
7
 
@@ -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.0
107
+ - uses: sourcemeta/jsonschema@v7.2.2
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, which you
135
+ 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
@@ -168,25 +161,3 @@ cmake --install ./build --prefix <prefix> \
168
161
 
169
162
  Where `<prefix>` can be any destination prefix of your choosing, such as `/opt`
170
163
  or `/usr/local`.
171
-
172
- Coming Soon
173
- -----------
174
-
175
- This project is under heavy development, and we have a lot of cool things in
176
- the oven. In the mean-time, star the project to show your support!
177
-
178
- | Feature | Description | Status |
179
- |-----------------------|-----------------------------------------------------|-------------|
180
- | Upgrading/Downgrading | Convert a JSON Schema into a later or older dialect | Not started |
181
-
182
- Contributors
183
- ------------
184
-
185
- <a href="https://github.com/sourcemeta/jsonschema/graphs/contributors">
186
- <img src="https://contrib.rocks/image?repo=sourcemeta/jsonschema" />
187
- </a>
188
-
189
- License
190
- -------
191
-
192
- This project is governed by the [AGPL-3.0](./LICENSE) copyleft license.
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.0",
3
+ "version": "7.2.2",
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": {