> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

## v5.9.0

### New features

* Each run compares its failures with the newest earlier run in the same `outputDir`. The terminal, Markdown, and HTML reports tag each failure `[new]` or `[already failing]` and list the tests that are now fixed. The results add a `comparison` object and a `failureStatus` on each context. Choose what to compare with in `compareTo` or `--compare-to`. See [Compare with an earlier run](/docs/ci/reporters-and-artifacts#compare-with-an-earlier-run).
* Set `failOn: "new"` or pass `--fail-on new` to fail a run only when a failure is new. When every failure was already failing, the run exits `0`. See [Fail only on new failures](/docs/ci/reporters-and-artifacts#fail-only-on-new-failures).
* An `httpRequest` step's `response.schema` takes a JSON Schema the response body must match. Use it to check the types, formats, and patterns of values that change every run, such as IDs and timestamps. See [Check types, formats, and patterns](/docs/actions/httprequest#check-types-formats-and-patterns).

### Behavior changes

* When `outputDir` holds an earlier run, reports and results include the comparison with no config change. On its own, the comparison doesn't change the exit code. To turn it off, set `compareTo: false` or pass `--no-compare-to`. A fresh CI runner has no earlier run, so cache `outputDir` between jobs or point `compareTo` at a results file you download.
* OpenAPI request and response schema checks enforce `format`, such as `uuid` or `date-time`. Before, Doc Detective ignored `format`, so a step can now fail on a value that passed earlier. See [An OpenAPI schema check fails after an upgrade with a `format` error](/docs/test-docs/http-and-api#an-openapi-schema-check-fails-after-an-upgrade-with-a-format-error).

### Bug fixes

* When an OpenAPI operation has no example, Doc Detective generates examples for `mockResponse` and `useExample`. Those examples now give a field its schema `default` instead of a random value, including a default of `0`, `false`, or `""`.