Releases: Max-Health-Inc/openapi-ts-fetch
Releases · Max-Health-Inc/openapi-ts-fetch
Release list
v0.2.2
v0.2.1
Bug Fixes
- model_refs: Regex now matches non-PascalCase model names (e.g. \Body_, \�pi__\ generated by FastAPI)
- Enum models: Standalone enum schemas (e.g. \InteractionKind) are now generated as proper TypeScript union types and included in \models/index.ts\
- Duplicate operation IDs: Operations with duplicate IDs (from FastAPI \�pi_route(methods=[...])) are deduplicated per tag instead of generating duplicate class methods
v0.2.0
What's New
- Remote URL loading — fetch specs from http/https URLs directly
- --dry-run\ mode — validate spec and preview what would be generated
- --base-path\ override — set BASE_PATH in generated runtime.ts
- Input spec validation — checks OpenAPI key, 3.x version, paths/webhooks
- argparse CLI — proper --version, --help, --tags, --base-path, --dry-run\
- 49 tests — 9 basic + 40 advanced covering allOf, oneOf, nullable, maps, enums, inline extraction, header params, void responses, operationId edge cases, error handling
Install
\\�ash
pip install openapi-ts-fetch==0.2.0
\\
v0.1.0
Initial release of openapi-ts-fetch.
Lightweight Python OpenAPI 3.x to TypeScript fetch client generator. Zero Java, zero npm.
Features:
- Generates typed fetch-based API clients from OpenAPI 3.0.3/3.1.x specs
- --tags flag for selective API/model generation
- CLI entry point: openapi-ts-fetch
- Pure Python, zero runtime dependencies