Skip to content

3.1 improve schema test coverage #4781

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

Open
wants to merge 22 commits into
base: v3.1-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
e155c0d
Bump @hyperjump/json-schema from 1.16.0 to 1.16.1
dependabot[bot] Jul 9, 2025
0004349
Merge pull request #4761 from OAI/dependabot/npm_and_yarn/hyperjump/j…
ralfhandl Jul 10, 2025
73103b7
Merge pull request #4764 from OAI/main
ralfhandl Jul 10, 2025
cb39996
Switch to @hyperjump/json-schema-coverage for schema test coverage
jdesrosiers Jul 2, 2025
5f48809
Add a check to fail the build if there isn't 100% test coverage
jdesrosiers Jul 10, 2025
ee625d6
Use file path for schema test instead of URI
jdesrosiers Jul 10, 2025
96f62b8
Fix coverage with custom vocabulary
jdesrosiers Jul 13, 2025
059a4b0
Update coverage to work on windows and don't enforce coverage on dev
jdesrosiers Jul 13, 2025
800542a
Thresholds now work with json-schema-coverage
jdesrosiers Jul 14, 2025
efe3b80
Merge branch 'pr/4762' into v3.2-dev
ralfhandl Jul 14, 2025
5cff253
Improved coverage
ralfhandl Jul 14, 2025
54e650a
invalid security stuff
ralfhandl Jul 14, 2025
253bff7
invalid components and tags
ralfhandl Jul 14, 2025
b5d4acb
schema.yaml: max coverage
ralfhandl Jul 14, 2025
07ee9fa
static coverage of schema.yaml
ralfhandl Jul 14, 2025
4160e31
coverage of meta.yaml
ralfhandl Jul 14, 2025
44e911d
Hard-coded test for otherwise unreachable branch
ralfhandl Jul 15, 2025
0b3bc65
3.1 adjustments of new test cases
ralfhandl Jul 15, 2025
84620e4
Merge branch 'pr/4762' into 3.1-schema-coverage
ralfhandl Jul 15, 2025
9d94dbd
Full coverage
ralfhandl Jul 16, 2025
c0cd4f0
sync fail test cases with 3.2
ralfhandl Jul 22, 2025
666d10c
comments for all test cases
ralfhandl Jul 23, 2025
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
169 changes: 152 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"scripts": {
"build": "bash ./scripts/md2html/build.sh",
"build-src": "npm run validate-markdown && bash ./scripts/md2html/build.sh src && bash ./scripts/schema-publish.sh src",
"test": "c8 --100 vitest --watch=false && bash scripts/schema-test-coverage.sh",
"test": "c8 --100 vitest run --coverage",
"format-markdown": "npx markdownlint-cli2 --config spec.markdownlint.yaml --fix src/oas.md && npx markdownlint-cli2 --fix *.md",
"validate-markdown": "npx markdownlint-cli2 --config spec.markdownlint.yaml src/oas.md && npx markdownlint-cli2 *.md"
},
Expand All @@ -27,7 +27,7 @@
"yargs": "^18.0.0"
},
"devDependencies": {
"@hyperjump/json-schema": "^1.16.0",
"@hyperjump/json-schema-coverage": "^1.1.0",
"c8": "^10.1.3",
"markdownlint-cli2": "^0.18.1",
"vitest": "^3.2.4",
Expand Down
Loading