Why spellcheck misses API contract changes
Spellcheck is the wrong instrument for a contract. userId and id are both spelled correctly. createdAt and created_at are both legal identifiers. A prose linter will pass the sentence that tells an integrator to send the field you deleted last week. That gap between correct prose and a changed contract is API documentation drift.
The failure is semantic
Documentation testing asks whether a claim is true:
- Does this path exist on the server?
- Does this parameter name match the handler or the OpenAPI operation?
- Does this example object satisfy the schema?
- Did a public method ship with no page?
Language quality is a separate pass. You can run both. One of them will not substitute for the other.
A concrete miss
The implementation accepts:
interface User {
id: string;
email: string;
createdAt: string;
}
The documentation table still lists created_at. Every word on that page is in the dictionary. The response your SDK generates will not contain the property the table promises, and the support thread starts from the table.
A checker that tokenizes prose cannot see the TypeScript property. A checker that parses the route and the spec can. That is also why the decision should come from a parser, not a model's opinion: see deterministic checks versus an AI documentation review.
Where teams over-trust the green check
CI often already has markdownlint, Vale, and a link crawler. The pull request is green. The API page is still wrong. Adding another prose rule will not close that gap, because the bug is not in the prose. It is in the relationship between the prose and the contract. A link crawler has the same limit, covered in OpenAPI validation is not a link checker.
LintDrift is aimed at that relationship. It treats spelling and style as someone else's job, and it treats a mismatched endpoint as a failed check, reported on the pull request that caused it. That workflow is in catch outdated API docs in the pull request.
LintDrift runs on GitHub for TypeScript/Node repositories with OpenAPI and Markdown or MDX docs. One repository is free, and paid plans start at $29/month. See plans and pricing or add it to one repository for free.
Catch the next outdated endpoint before it merges.