Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"license": "Apache-2.0",
"scripts": {
"build": "bash ./scripts/md2html/build.sh",
"build-schemas": "bash ./scripts/schema-publish.sh",
"build-src": "npm run validate-markdown && bash ./scripts/md2html/build-src.sh",
"test": "c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh",
"validate-markdown": "npx mdv src/oas.md && npx markdownlint-cli src/oas.md"
Expand Down
4 changes: 3 additions & 1 deletion scripts/schema-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
schemaDir="src/schemas/validation"
branch=$(git branch --show-current)
version=${branch:1:3}
echo $version
echo === Building schemas into ./deploy/oas/$version

# list of schemas to process, dependent schemas come first
schemas=(meta.yaml dialect.yaml schema.yaml schema-base.yaml)
Expand Down Expand Up @@ -49,3 +49,5 @@ for schema in "${!datesHash[@]}"; do

mv deploy/oas/$version/$base/*.md $target.md
done

echo === Built