What problem does it solve?
Keeps Phoenix applications using open_api_spex from drifting out of sync by regenerating the OpenAPI specification directly from live controller operations and schema modules.
Core Features & Use Cases
- Spec regeneration from code: Rebuilds openapi.json or openapi.yaml based on your ApiSpec module, controller operation definitions, and OpenApiSpex schema modules.
- Workflow-aligned output: Detects which spec format exists in the project root and regenerates accordingly (or both if both exist), then helps you review changes via diffs.
- Common failure guidance: Surfaces compilation errors and highlights likely causes of missing endpoints (e.g., controller actions without OpenApiSpex.operation metadata).
Quick Start
Ask the AI to regenerate your OpenAPI spec by running the OpenAPI regenerate workflow for your Phoenix app, updating the existing openapi.json or openapi.yaml in the project root.