For AI agents: a documentation index is available at the root level at /llms.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
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.
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.
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.
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.
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 "".