| Crates.io | openapi-nexus-config |
| lib.rs | openapi-nexus-config |
| version | 0.0.3-alpha.1 |
| created_at | 2025-11-04 15:54:32.62575+00 |
| updated_at | 2026-01-09 07:05:48.54449+00 |
| description | OpenAPI 3.1 to code generator |
| homepage | |
| repository | https://github.com/adamcavendish/openapi-nexus |
| max_upload_size | |
| id | 1916435 |
| size | 36,313 |
OpenAPI 3.1 to Code Generator - Generate type-safe, production-ready code from OpenAPI specifications
OpenAPI Nexus is a modern, modular code generator that transforms OpenAPI 3.1 specifications into client or server libraries. It provides a flexible, extensible architecture for generating high-quality code across multiple languages.
Generate TypeScript code from an OpenAPI specification:
openapi-nexus generate --input path/to/openapi.yaml --output generated --generator typescript-fetch
OpenAPI Nexus supports multiple configuration methods with the following precedence (highest to lowest):
openapi-nexus-config.toml)Create an openapi-nexus-config.toml file in your project root by referencing the sample configuration file.
All configuration options can also be set via environment variables:
export OPENAPI_NEXUS_INPUT="spec.yaml"
export OPENAPI_NEXUS_OUTPUT="generated"
export OPENAPI_NEXUS_GENERATOR="typescript-fetch"
export OPENAPI_NEXUS_TS_FILE_NAMING_CONVENTION="PascalCase"
openapi-nexus generate --help
OpenAPI Nexus follows a modular, pipeline-based architecture:
OpenAPI Spec → Parse → Transform → AST → Emit → Generated Code
This project is dual-licensed under either:
at your option.