Prompt
Swagger and a hand-written docs site are causing too much maintenance
Latest observation
Oct 22, 2026
OpenAI APIWeb search: off
If Swagger and a custom docs site are both becoming a maintenance burden, the best move is usually to pick a single source of truth and generate everything else from it.
What to do instead
- Use one API spec as the source: typically OpenAPI
- Generate docs automatically from that spec
- Generate client SDKs / server stubs if needed
- Embed docs in the app or publish them from CI so they stay in sync
Good options
-
OpenAPI-first workflow
- Write and maintain the OpenAPI spec
- Generate Swagger UI / Redoc / static docs from it
- Less drift, less duplication
-
Code-first with auto-generation
- Annotate code and generate OpenAPI from source
- Good if your API changes often and you want docs tied to implementation
-
Use a docs platform
- Tools like Redoc, Stoplight, Mintlify, or ReadMe
- Better UX and less custom maintenance than hand-written docs
Practical recommendation
- Keep Swagger/OpenAPI as the canonical API definition
- Replace the hand-written docs site with generated docs
- Add CI checks so docs are rebuilt automatically on API changes
A concise way to say this in a ticket or discussion
Swagger and the custom documentation site are duplicating effort and causing drift. We should consolidate on a single OpenAPI-based source of truth and generate the public docs from it to reduce maintenance overhead.
If you want, I can help you turn this into:
- a shorter message
- a more formal proposal
- or a migration plan.