-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Avram Schemas to directory 'avram-schemas'
- Loading branch information
Showing
13 changed files
with
57 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,15 +12,7 @@ jobs: | |
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- run: npm install -g [email protected] ajv ajv-formats # checking Avram 0.9.6 | ||
- run: npm install | ||
- name: Validate Avram Schema files | ||
run: | | ||
avram -s marc-schema/marc-schema.json | ||
avram -s src/main/resources/marc-schema.json | ||
avram -s src/main/resources/marc/authority-schema.avram.json | ||
avram -s src/main/resources/pica-schema.json | ||
avram -s src/main/resources/pica/avram-k10plus-title.json | ||
avram -s src/main/resources/unimarc/avram-unimarc.json | ||
avram -s src/test/resources/pica/schema/pica-schema-extra.json | ||
avram -s src/test/resources/pica/schema/pica-schema.json | ||
avram -s src/test/resources/unimarc/avram-unimarc.json | ||
run: ./avram-schemas/validate-schemas | ||
|
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 |
---|---|---|
|
@@ -56,3 +56,6 @@ setdir.sh | |
|
||
# used as Docker volume | ||
web-config | ||
|
||
# Node packages | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
To generate these files, run | ||
|
||
```bash | ||
./qa-catalogue export-schema-files | ||
``` | ||
|
||
To validate the files, run | ||
|
||
```bash | ||
./avram-schemas/validate-schemas | ||
``` |
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
validate() { | ||
npm run --silent avram -- -s $@ | ||
} | ||
|
||
validate avram-schemas/marc-schema.json | ||
validate src/main/resources/marc-schema.json | ||
validate src/main/resources/marc/authority-schema.avram.json | ||
validate src/main/resources/pica-schema.json | ||
validate src/main/resources/pica/avram-k10plus-title.json | ||
validate src/main/resources/unimarc/avram-unimarc.json | ||
validate src/test/resources/pica/schema/pica-schema-extra.json | ||
validate src/test/resources/pica/schema/pica-schema.json | ||
validate src/test/resources/unimarc/avram-unimarc.json |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1 +1 @@ | ||
../../../marc-schema/marc-schema.json | ||
../../../avram-schemas/marc-schema.json |