Skip to content

Releases: Max-Health-Inc/openapi-ts-fetch

v0.2.2

Choose a tag to compare

@quotentiroler quotentiroler released this 14 May 10:17

Bug Fixes

  • fix: preserve title in canonical form to prevent dedup of distinct schemas
  • fix: enum models in index, non-PascalCase model refs, duplicate operation ID dedup

v0.2.1

Choose a tag to compare

@quotentiroler quotentiroler released this 24 Apr 21:40

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

Choose a tag to compare

@quotentiroler quotentiroler released this 19 Apr 11:36

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

Choose a tag to compare

@quotentiroler quotentiroler released this 19 Apr 10:28

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