Skip to content

chore: bring back json schemas to avoid a breaking change in schemastore and other third parties #4150

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
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
9 changes: 6 additions & 3 deletions .github/workflows/schema-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ name: schema-test
# Issue: https://github.com/OAI/OpenAPI-Specification/pull/2489

#
# This workflow runs the npm test script to validate passing and failing
# testcases for the metaschemas
#
# This workflow
# - converts the YAML metaschemas to JSON
# - runs the npm test script to validate passing and failing testcases for the metaschemas

# run this on push to any branch and creation of pull-requests
on:
Expand All @@ -33,5 +33,8 @@ jobs:
git checkout remotes/origin/main -- package.json package-lock.json
npm ci

- name: convert YAML metaschemas to JSON
run: find schemas/v3* -type f -name "*.yaml" | xargs node scripts/yaml2json/yaml2json.js

- name: Run tests
run: npm run test
Loading