OpenAPI validation is not a link checker
A link checker walks the documentation, requests each URL, and reports what 404s. That is a real failure mode. It is also the easy one. The page about authentication can load perfectly and still tell the reader to call GET /api/users/{id} after the route moved to GET /api/v2/users/{userId}. That is API documentation drift, and no link checker will flag it.
OpenAPI validation, in the sense that matters for documentation, asks a different question: does this page describe an operation that exists, with the parameters and schema the spec actually declares?
What a link checker can see
- Internal links to renamed or deleted Markdown files.
- Anchors that no longer exist.
- References to an operation id that was removed.
Those checks belong in the pipeline. They do not establish whether a documented field exists on the response. Prose linters have the same blind spot, which is why spellcheck misses API contract changes.
What the contract can see
When the OpenAPI document is the authority, a documentation check can compare:
- The method and path on the page with
pathsin the spec. - Path, query, and body parameters with the operation's parameter list.
- Example payloads with the request and response schemas.
- Newly added operations with the set of pages that mention them.
That last comparison is documentation coverage: discovered operations against the ones with a matching page.
If the spec and the TypeScript routes disagree with each other, that is a separate finding. The docs should not be asked to match two conflicting sources. Pick the file that your team treats as authoritative and test the prose against that.
How to read a failure
A useful failure names both sides.
Documented:
created_at
Schema:createdAt
A reviewer can fix the page without opening the spec in another tab and guessing which name won. A broken-link report cannot produce that sentence, because the link was never broken.
LintDrift runs both kinds of check on a pull request, and it labels them differently. A missing file is a broken reference. A renamed field is drift. Treating them as the same tool is how teams conclude that "the docs passed" when only the links did. Here is how that check fits into review: catch outdated API docs in the pull request.
LintDrift works on GitHub repositories with TypeScript/Node code, OpenAPI specs, and Markdown or MDX docs. Start on the Free plan with one repository, or move to Pro ($29/month) for pull-request annotations across five. See pricing or start free.
Catch the next outdated endpoint before it merges.