Checker-rule coverage
oasdiff 1.35.0 has a rule for every kind of change it reports, 778 in all (oasdiff checks changelog). A rule is checked by the golden tests only if at least one fixture pair makes it fire. For a rule that never fires, nothing compares OasDelta's output with oasdiff's. This page lists which rules the goldens reach and which they don't.
743 of 778 rules fire in the goldens (96%)
35 fire in none (4%)
21,549 comparisons: 653 fixture pairs × 33 command sets
35 rules
request-parameter-pattern-generalizedno goldenrequest parameter pattern generalizedrequest-body-discriminator-mapping-changedno goldenrequest body discriminator mapping changedrequest-body-max-items-increasedno goldenrequest body max items increasedrequest-body-min-length-increasedno goldenrequest body min length increasedrequest-body-min-properties-decreasedno goldenrequest body minProperties decreasedrequest-body-min-properties-increasedno goldenrequest body min properties increasedrequest-parameter-max-contains-decreasedno goldenrequest parameter maxContains decreasedrequest-parameter-max-contains-increasedno goldenrequest parameter maxContains increasedrequest-parameter-min-contains-decreasedno goldenrequest parameter minContains decreasedrequest-parameter-min-contains-increasedno goldenrequest parameter minContains increasedrequest-parameter-min-properties-decreasedno goldenrequest parameter minProperties decreasedrequest-parameter-min-properties-increasedno goldenrequest parameter minProperties increasedrequest-property-max-items-decreasedno goldenrequest property max items decreasedrequest-property-max-properties-decreasedno goldenrequest property max properties decreasedrequest-property-min-items-decreasedno goldenrequest property minItems decreasedrequest-read-only-property-exclusive-max-decreasedno goldenrequest read-only property exclusiveMaximum decreasedrequest-read-only-property-exclusive-min-increasedno goldenrequest read-only property exclusiveMinimum increasedrequest-read-only-property-max-items-decreasedno goldenrequest read-only property max items decreasedrequest-read-only-property-max-length-decreasedno goldenrequest read-only property max length decreasedrequest-read-only-property-max-properties-decreasedno goldenrequest read-only property max properties decreasedresponse-body-discriminator-mapping-changedno goldenresponse body discriminator mapping changedresponse-header-exclusive-max-increasedno goldenresponse header exclusiveMaximum increasedresponse-header-max-contains-decreasedno goldenresponse header maxContains decreasedresponse-header-max-contains-increasedno goldenresponse header maxContains increasedresponse-header-max-items-decreasedno goldenresponse header maxItems decreasedresponse-header-max-items-increasedno goldenresponse header maxItems increasedresponse-header-max-properties-decreasedno goldenresponse header maxProperties decreasedresponse-header-max-properties-increasedno goldenresponse header maxProperties increasedresponse-header-min-contains-decreasedno goldenresponse header minContains decreasedresponse-header-min-contains-increasedno goldenresponse header minContains increasedresponse-header-min-items-decreasedno goldenresponse header minItems decreasedresponse-header-min-items-increasedno goldenresponse header minItems increasedresponse-header-min-length-decreasedno goldenresponse header minLength decreasedresponse-header-min-properties-decreasedno goldenresponse header minProperties decreasedresponse-header-min-properties-increasedno goldenresponse header minProperties increased
How it is counted
- The rules are oasdiff's own list, kept in
tests/golden/checks-changelog.json. A test checks that OasDelta'schecks changelog -f jsonis identical to it. - A rule fires in a golden when its id appears in one of the JSON golden outputs:
changelogandbreakingwith-f json, and thechangelogoption sets. The count is how many golden comparisons fire it. The link opens one of them. - The page is built from the goldens at every docs build, so it always matches the tests.
- The count can't drop. CI fails if fewer rules fire than
tests/rule-coverage-floor.txt. Every pull request's checks list the rules it gains or loses.
Rules no golden fires
The nightly property tests reach many of these with generated pairs, comparing OasDelta with oasdiff on each. Those cases aren't goldens yet. Issue #38 tracks covering every rule. For each group of rules it records why nothing fires them yet:
- Fired only by generated pairs (#40).
- Shapes the generator never writes (#41):
minContains/maxContains,contentSchema,itemSchema, boolean schemas, andallOfentries with only annotations. - Keywords the generator writes whose rules still don't fire (#42), mostly bounds.
- Sunset and stability rules (#43), which depend on dates.
- Security-scheme URLs and scopes (#44).