Skip to content

3.2 improve schema test coverage #4780

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 28 commits into
base: v3.2-dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
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
abc3e30
Merge branch 'pr/4762' into v3.2-dev
ralfhandl Jul 14, 2025
6c8e47b
Improved coverage
ralfhandl Jul 14, 2025
3baeb67
Dubious change to satisfy schema coverage
ralfhandl Jul 14, 2025
909cfc5
invalid security stuff
ralfhandl Jul 14, 2025
6c85d66
invalid components and tags
ralfhandl Jul 14, 2025
8c97f6d
schema.yaml: max coverage
ralfhandl Jul 14, 2025
71b1007
Revert "Dubious change to satisfy schema coverage"
ralfhandl Jul 14, 2025
5c0aa8b
static coverage of schema.yaml
ralfhandl Jul 14, 2025
4fdec19
coverage of meta.yaml
ralfhandl Jul 14, 2025
91c5d24
Hard-coded test for otherwise unreachable branch
ralfhandl Jul 15, 2025
9ef030e
Full coverage
ralfhandl Jul 16, 2025
83449c7
Use more likely error as negative test case
ralfhandl Jul 18, 2025
7961e62
split up some test cases
ralfhandl Jul 22, 2025
a5766d9
Merge remote-tracking branch 'upstream/v3.2-dev' into dummy
ralfhandl Jul 22, 2025
47ab80d
fix broken test cases and coverage
ralfhandl Jul 22, 2025
7124e7f
Update path-item-object-conflicting-additional-operation.yaml
ralfhandl Jul 22, 2025
34aec21
Update invalid-components.yaml
ralfhandl Jul 22, 2025
f50e429
Comments on all wrong field values
ralfhandl Jul 23, 2025
9ab0815
Merge remote-tracking branch 'upstream/v3.2-dev' into 3.2-schema-cove…
ralfhandl Jul 23, 2025
566eec4
Additional test case for new field in meta.yaml
ralfhandl Jul 23, 2025
caabbf8
Merge remote-tracking branch 'upstream/v3.2-dev' into 3.2-schema-cove…
ralfhandl Jul 25, 2025
e98c316
negative test cases for new fields
ralfhandl Jul 25, 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
163 changes: 149 additions & 14 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.1",
"@hyperjump/json-schema-coverage": "^1.1.0",
"c8": "^10.1.3",
"markdownlint-cli2": "^0.18.1",
"vitest": "^3.2.4",
Expand Down
Loading