-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Juan Cruz Viotti <[email protected]>
- Loading branch information
Showing
37 changed files
with
86 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -76,41 +76,41 @@ powerful [JSON Toolkit](https://github.com/sourcemeta/jsontoolkit) library. | |
### From Homebrew | ||
|
||
```sh | ||
brew install intelligence-ai/apps/jsonschema | ||
brew install sourcemeta/apps/jsonschema | ||
``` | ||
|
||
### From GitHub Actions | ||
|
||
```yaml | ||
- uses: intelligence-ai/[email protected] | ||
- uses: sourcemeta/[email protected] | ||
``` | ||
Where `X.Y.Z` is replaced with the desired version. For example: | ||
|
||
```yaml | ||
- uses: intelligence-ai/[email protected] | ||
- uses: sourcemeta/[email protected] | ||
# Then use as usual | ||
- run: jsonschema fmt path/to/schemas --check | ||
``` | ||
|
||
### From NPM | ||
|
||
```sh | ||
npm install --global @intelligence-ai/jsonschema | ||
npm install --global @sourcemeta/jsonschema | ||
``` | ||
|
||
### From GitHub Releases | ||
|
||
We publish precompiled binaries for every supported platform to [GitHub | ||
Releases](https://github.com/Intelligence-AI/jsonschema/releases), including a | ||
[continuous](https://github.com/Intelligence-AI/jsonschema/releases/tag/continuous) | ||
Releases](https://github.com/sourcemeta/jsonschema/releases), including a | ||
[continuous](https://github.com/sourcemeta/jsonschema/releases/tag/continuous) | ||
that is updated on every commit from the main branch. | ||
|
||
For convenience, we also provide a POSIX shell script capable of installing the | ||
latest pre-built binaries, which you can run as follows: | ||
|
||
```sh | ||
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/intelligence-ai/jsonschema/main/install -H "Cache-Control: no-cache, no-store, must-revalidate")" | ||
/bin/sh -c "$(curl -fsSL https://raw.githubusercontent.com/sourcemeta/jsonschema/main/install -H "Cache-Control: no-cache, no-store, must-revalidate")" | ||
``` | ||
|
||
### From Dockerfile | ||
|
@@ -142,12 +142,12 @@ docker run --interactive --volume "$PWD:/workspace" jsonschema lint --verbose my | |
### Building from source | ||
|
||
```sh | ||
git clone https://github.com/intelligence-ai/jsonschema | ||
git clone https://github.com/sourcemeta/jsonschema | ||
cd jsonschema | ||
cmake -S . -B ./build -DCMAKE_BUILD_TYPE:STRING=Release | ||
cmake --build ./build --config Release --parallel 4 | ||
cmake --install ./build --prefix <prefix> \ | ||
--config Release --verbose --component intelligence_jsonschema | ||
--config Release --verbose --component sourcemeta_jsonschema | ||
``` | ||
|
||
Where `<prefix>` can be any destination prefix of your choosing, such as `/opt` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ VERSION="$(echo "$1" | tr -d 'v')" | |
# (1) Download artifacts | ||
mkdir -p "$OUTPUT/npm/artifacts" | ||
echo "Preparing $VERSION" 1>&2 | ||
PACKAGE_BASE_URL="https://github.com/intelligence-ai/jsonschema/releases/download/v$VERSION" | ||
PACKAGE_BASE_URL="https://github.com/sourcemeta/jsonschema/releases/download/v$VERSION" | ||
curl --retry 5 --location --output "$OUTPUT/npm/artifacts/darwin-arm64.zip" \ | ||
"$PACKAGE_BASE_URL/jsonschema-$VERSION-darwin-arm64.zip" | ||
curl --retry 5 --location --output "$OUTPUT/npm/artifacts/darwin-x86_64.zip" \ | ||
|
@@ -46,28 +46,28 @@ install -m 0644 "$(pwd)/README.markdown" "$OUTPUT/npm/staging/README.md" | |
|
||
cat << EOF > "$OUTPUT/npm/staging/package.json" | ||
{ | ||
"name": "@intelligence-ai/jsonschema", | ||
"name": "@sourcemeta/jsonschema", | ||
"version": "$VERSION", | ||
"description": "The CLI for working with JSON Schema. Covers formatting, linting, testing, and much more for both local development and CI/CD pipelines", | ||
"main": "cli.js", | ||
"bin": { | ||
"jsonschema": "cli.js" | ||
}, | ||
"license": "AGPL-3.0", | ||
"homepage": "https://github.com/intelligence-ai/jsonschema", | ||
"author": "Juan Cruz Viotti <[email protected]>", | ||
"homepage": "https://github.com/sourcemeta/jsonschema", | ||
"author": "Juan Cruz Viotti <[email protected]>", | ||
"keywords": [ | ||
"jsonschema", "json", "schema", "json-schema", | ||
"cli", "\$ref", "dereference", "reference", "resolve", | ||
"json-pointer", "validator", "bundle", | ||
"lint", "format" | ||
], | ||
"bugs": { | ||
"url": "https://github.com/intelligence-ai/jsonschema/issues" | ||
"url": "https://github.com/sourcemeta/jsonschema/issues" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/intelligence-ai/jsonschema.git" | ||
"url": "git+https://github.com/sourcemeta/jsonschema.git" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
|
@@ -90,7 +90,7 @@ const EXECUTABLE = PLATFORM === 'windows' | |
if (!fs.existsSync(EXECUTABLE)) { | ||
console.error(`The JSON Schema CLI NPM package does not support ${os.platform()} for ${ARCH} yet`); | ||
console.error('Please open a GitHub issue at https://github.com/Intelligence-AI/jsonschema'); | ||
console.error('Please open a GitHub issue at https://github.com/sourcemeta/jsonschema'); | ||
process.exit(1); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.