Where a route-listing snippet stops
- The application must import and start successfully before runtime inspection is complete.
- Routes configured with include_in_schema=False are reachable but absent from generated OpenAPI.
- Mounted sub-applications and dynamically registered routes require explicit traversal and verification.
- A runtime list does not explain which source file or handler registered each route consistently.
app.routesis an internal detail: FastAPI 0.137 changed it from a flat list to a tree, which broke code that looped over it.