-
Notifications
You must be signed in to change notification settings - Fork 890
Update JSON Schema to be v1.0 compliant #1600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
cfde575
Update JSON Schema to be v1.0 compliant
VGirol f2cf5cb
Update schema to be more reusable
VGirol a365699
Add schema to validate a request that update a resource or a relation…
VGirol ef83636
Change naming convention and folder structure to be more consistent
VGirol 4132626
Enhance reusability
VGirol 8597530
Lint test files
VGirol fdc9720
Fix typo
VGirol 49ea5cd
Update JSON Schema to be v1.0 compliant
VGirol 5d5f369
Update schema to be more reusable
VGirol 3b10eaa
Add schema to validate a request that update a resource or a relation…
VGirol dc1f3cc
Change naming convention and folder structure to be more consistent
VGirol 1bec0a0
Change all title to more neutral text.
VGirol 967e17c
Add script to valide JSON schema against all test files and update sc…
VGirol 3b954d4
Add documentation on how to run the tests for the JSON Schemas
VGirol 46427f7
Update validation script of JSON Schema so that validation is also do…
VGirol cc50fdd
script linting
VGirol e955058
Revert "script linting"
VGirol 12cdaa8
Script linting
VGirol abdd582
Enhance script output
VGirol 0b97835
Enhance readability
VGirol 424a84b
Add -f and -v options to test script
VGirol 3291313
Fix typo
VGirol cdd7b4b
Add test-schema to CI
VGirol 0cf8847
Fix typo in bash command to run script
VGirol f1a98bf
Change trigger for the "Schema validation test" workflow
VGirol fae1d42
Allow for parallel relationships in JSON Schema
VGirol 31b120a
Bump ajv version
VGirol f3a8aa7
Update to latest version of json-schema
VGirol 5555fa9
Remove node_modules
VGirol File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Schema validation tests | ||
|
||
on: | ||
push: | ||
branches: [ gh-pages, schema-1.0 ] | ||
pull_request: | ||
branches: [ gh-pages ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Test schemas | ||
run: npm run test-schema |
This file contains hidden or 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 |
---|---|---|
|
@@ -25,3 +25,7 @@ Gemfile.lock | |
/bin | ||
/b | ||
.rbx | ||
|
||
# Ignore the node_modules directory | ||
|
||
/node_modules |
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.