A platform provider updated its OpenAPI document when migrating partner onboarding from v1 to v2—but documentation examples lived in a separate repository with no CI validation. New partners copied the official guide, hit 404 and 400 errors, and opened support tickets before anyone traced the cause.
What happened
A platform provider maintained a developer portal with tutorials, copy-and-paste examples, and generated SDK snippets. The API team had migrated partner onboarding from /v1/registrations to /v2/registrations, but several tutorials and sample applications still used the retired endpoint and an obsolete request shape.
Existing partners were unaffected because their integrations had already been updated. New partners followed the official guide exactly, received 404 or 400 responses, and opened support tickets. The team initially suspected authentication problems because the examples also contained an old header name.
The OpenAPI document had been updated, but documentation examples were maintained in a separate repository and were not part of CI validation. The portal build succeeded even though its examples no longer matched a live API version.
Root cause
Documentation and sample code were released independently from API contract changes. The documentation site was checked for rendering, not whether examples actually worked against the published API.
The fix
The company moved executable examples alongside the versioned API specification and added a documentation test job. Every published example is now run against a controlled environment, with explicit labels for deprecated versions and migration guidance.
Testing gaps and preventive tests
Executable documentation examples, OpenAPI drift checks, endpoint lifecycle checks, and versioned migration tests. Documentation is part of the developer-facing contract and must be tested like code.
Business impact
Partner onboarding slowed, developer support volume increased, and trust in the documentation declined.
Lesson learned
Documentation is part of the developer-facing contract and must be tested like code.