Skip to content

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 golden
    request parameter pattern generalized
    info · parameters · constraints · request
  • request-body-discriminator-mapping-changedno golden
    request body discriminator mapping changed
    info · schema · structure · request
  • request-body-max-items-increasedno golden
    request body max items increased
    info · schema · constraints · request
  • request-body-min-length-increasedno golden
    request body min length increased
    error · schema · constraints · request
  • request-body-min-properties-decreasedno golden
    request body minProperties decreased
    info · schema · constraints · request
  • request-body-min-properties-increasedno golden
    request body min properties increased
    error · schema · constraints · request
  • request-parameter-max-contains-decreasedno golden
    request parameter maxContains decreased
    error · schema · constraints · request
  • request-parameter-max-contains-increasedno golden
    request parameter maxContains increased
    info · schema · constraints · request
  • request-parameter-min-contains-decreasedno golden
    request parameter minContains decreased
    info · schema · constraints · request
  • request-parameter-min-contains-increasedno golden
    request parameter minContains increased
    error · schema · constraints · request
  • request-parameter-min-properties-decreasedno golden
    request parameter minProperties decreased
    info · schema · constraints · request
  • request-parameter-min-properties-increasedno golden
    request parameter minProperties increased
    error · schema · constraints · request
  • request-property-max-items-decreasedno golden
    request property max items decreased
    error · schema · constraints · request
  • request-property-max-properties-decreasedno golden
    request property max properties decreased
    error · schema · constraints · request
  • request-property-min-items-decreasedno golden
    request property minItems decreased
    info · schema · constraints · request
  • request-read-only-property-exclusive-max-decreasedno golden
    request read-only property exclusiveMaximum decreased
    info · schema · constraints · request
  • request-read-only-property-exclusive-min-increasedno golden
    request read-only property exclusiveMinimum increased
    info · schema · constraints · request
  • request-read-only-property-max-items-decreasedno golden
    request read-only property max items decreased
    info · schema · constraints · request
  • request-read-only-property-max-length-decreasedno golden
    request read-only property max length decreased
    info · schema · constraints · request
  • request-read-only-property-max-properties-decreasedno golden
    request read-only property max properties decreased
    info · schema · constraints · request
  • response-body-discriminator-mapping-changedno golden
    response body discriminator mapping changed
    info · schema · structure · response
  • response-header-exclusive-max-increasedno golden
    response header exclusiveMaximum increased
    error · schema · constraints · response
  • response-header-max-contains-decreasedno golden
    response header maxContains decreased
    info · schema · constraints · response
  • response-header-max-contains-increasedno golden
    response header maxContains increased
    error · schema · constraints · response
  • response-header-max-items-decreasedno golden
    response header maxItems decreased
    info · schema · constraints · response
  • response-header-max-items-increasedno golden
    response header maxItems increased
    error · schema · constraints · response
  • response-header-max-properties-decreasedno golden
    response header maxProperties decreased
    info · schema · constraints · response
  • response-header-max-properties-increasedno golden
    response header maxProperties increased
    error · schema · constraints · response
  • response-header-min-contains-decreasedno golden
    response header minContains decreased
    error · schema · constraints · response
  • response-header-min-contains-increasedno golden
    response header minContains increased
    info · schema · constraints · response
  • response-header-min-items-decreasedno golden
    response header minItems decreased
    error · schema · constraints · response
  • response-header-min-items-increasedno golden
    response header minItems increased
    info · schema · constraints · response
  • response-header-min-length-decreasedno golden
    response header minLength decreased
    error · schema · constraints · response
  • response-header-min-properties-decreasedno golden
    response header minProperties decreased
    error · schema · constraints · response
  • response-header-min-properties-increasedno golden
    response header minProperties increased
    info · schema · constraints · response

How it is counted ​

  • The rules are oasdiff's own list, kept in tests/golden/checks-changelog.json. A test checks that OasDelta's checks changelog -f json is identical to it.
  • A rule fires in a golden when its id appears in one of the JSON golden outputs: changelog and breaking with -f json, and the changelog option 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, and allOf entries 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).

Apache License 2.0. OasDelta is a derivative work of oasdiff and is not affiliated with or endorsed by the oasdiff project.