-
Notifications
You must be signed in to change notification settings - Fork 0
Home
@metiagomarques edited this page Mar 17, 2026
·
5 revisions
x-openapi-flow is an OpenAPI vendor extension and CLI for modeling, documenting, and validating API resource lifecycle workflows.
It adds explicit state-machine metadata (x-openapi-flow) to operations and validates both schema and lifecycle graph consistency.
Real APIs change often, and lifecycle state transitions usually stay implicit.
With x-openapi-flow, current states and transitions become explicit per operation, so teams can validate lifecycle behavior early and avoid integration regressions.
- Schema validation for the
x-openapi-flowextension - Graph consistency checks (orphans, reachability, cycles, terminal states)
- Validation profiles (
core,relaxed,strict) - Sidecar workflow for regenerated OpenAPI files (
init+apply) - Flow bootstrap with
analyze(--mergeand confidence scores in JSON output) - SDK generation (
generate-sdkfor TypeScript) - Lifecycle documentation export (
export-doc-flows) - Graph export (
mermaid/json) - Integration adapters for Swagger UI, Redoc, Postman, and Insomnia
npm install x-openapi-flow
npx x-openapi-flow init
npx x-openapi-flow apply openapi.yaml --out openapi.flow.yaml
npx x-openapi-flow validate openapi.flow.yaml --profile strict --strict-qualitySidecar workflow:
-
{context}.x.(json|yaml): sidecar source (author/edit this file) -
{context}.flow.(json|yaml): generated OpenAPI output (validate and use this file)
x-openapi-flow
- npm package: https://www.npmjs.com/package/x-openapi-flow
- GitHub repository: https://github.com/tiago-marques/x-openapi-flow
- Latest release notes: https://github.com/tiago-marques/x-openapi-flow/tree/main/docs/wiki/releases
- Open issues: https://github.com/tiago-marques/x-openapi-flow/issues
- Main README: https://github.com/tiago-marques/x-openapi-flow#readme