oag
OpenAPI 3.x codegen with plugin architecture
Overview
Rust-powered OpenAPI 3.x code generator with a plugin-style architecture: TypeScript clients with zero runtime dependencies, React SWR hooks, Python FastAPI server stubs with Pydantic v2, and first-class SSE streaming via AsyncGenerator. Supports three layout modes, automated test generation, and full $ref resolution.
Demo

CLI Workflow
Features
Plugin Architecture
Enable only the generators you need: TS client, React, or FastAPI.
Zero-Dep TS Client
Fully typed TypeScript clients generated with zero runtime dependencies or polyfills.
FastAPI Server Stubs
Python server stubs with Pydantic v2 models and pytest test generation.
SSE Streaming
First-class server-sent events support via AsyncGenerator and StreamingResponse APIs.
Three Layout Modes
Bundled, modular, or split-by-tag file organization configurable per each generator.
Full $ref Resolution
Complete OpenAPI 3.x $ref resolution across nested schemas and paths.