Skip to content

Commit

Permalink
Merge pull request #426 from jrdnbradford/update-vendor-dir
Browse files Browse the repository at this point in the history
Update vendor directories for organization
  • Loading branch information
sirosen committed May 3, 2024
2 parents 229943d + 5892a63 commit 9c3ed2e
Show file tree
Hide file tree
Showing 29 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/vendor-schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def schema2filename(name: str) -> str:


def schema2hashfile(name: str) -> str:
return f"src/check_jsonschema/builtin_schemas/vendor/{name}.sha256"
return f"src/check_jsonschema/builtin_schemas/vendor/sha256/{name}.sha256"


def file2digest(filepath: str) -> str:
Expand Down
7 changes: 6 additions & 1 deletion src/check_jsonschema/builtin_schemas/vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ For the exact list of schemas here, see the repo root for hook config.

Most of the schemas in this directory are provided by SchemaStore. They are
therefore licensed under the SchemaStore license, included in this directory.
Additional licenses are provided for other sources as noted below.
Additional licenses can be found in [`licenses`](licenses).

### Azure Pipelines

Expand All @@ -34,3 +34,8 @@ of the license for that repo.

The Buildkite schema is provided by Buildkite and licensed under the license
for their 'pipeline-schema' repo.

### Taskfile

The Taskfile schema is provided by Task and licensed under the license
for their 'task' repo.
2 changes: 2 additions & 0 deletions src/check_jsonschema/builtin_schemas/vendor/sha256/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# sha256
Files in this directory are used for updating vendor schemas when they change.
2 changes: 1 addition & 1 deletion src/check_jsonschema/transforms/azure_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
That source is licensed under the MIT License.
The original license can be found in
src/check_jsonschema/builtin_schemas/vendor/LICENSE.azure-pipelines
src/check_jsonschema/builtin_schemas/vendor/licenses/LICENSE.azure-pipelines
The transform does not deeply interpret the expressions. It just "unnests" them.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# https://github.com/microsoft/azure-pipelines-language-server/blob/71b20f92874c02dfe82ad2cc2dcc7fa64996be91/language-service/test/pipelinesTests/yamlvalidation.test.ts#L50
#
# original license can be found in
# src/check_jsonschema/builtin_schemas/vendor/LICENSE.azure-pipelines
# src/check_jsonschema/builtin_schemas/vendor/licenses/LICENSE.azure-pipelines
#
steps:
- ${{ if succeeded() }}:
Expand Down
2 changes: 1 addition & 1 deletion tests/example-files/hooks/positive/buildkite/matrix.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# this example copied from the buildkite pipeline-schema repo
# it is therefore licensed under the existing buildkite MIT license
# see src/check_jsonschema/builtin_schemas/vendor/ for license details
# see src/check_jsonschema/builtin_schemas/vendor/licenses for license details

steps:
- command: "echo {{matrix}}"
Expand Down

0 comments on commit 9c3ed2e

Please sign in to comment.