Skip to content

Releases: gpu-cli/openapi-to-rust

v0.1.3

04 Apr 23:14
230becf

Choose a tag to compare

What's New

Bug Fixes (#2)

  • Resolve $ref parameter references — Parameters defined via $ref in components/parameters are now properly resolved before extraction
  • Merge path-item-level parameters — Parameters defined at the PathItem level are now inherited by all operations on that path (operation-level params take precedence per the OpenAPI spec)
  • Fix url variable name collision — Renamed internal URL construction variable to request_url to avoid shadowing when an operation has a parameter named url

Improvements (#3)

  • Use raw identifiers for Rust keywords — Fields like type now generate r#type instead of type_, producing more idiomatic Rust code

New Features

  • Operation registry generator — New registry_generator that emits static operation metadata (method, path, params, body, response schema) for CLI/proxy routing use cases
  • Robust YAML/JSON parsing — Handle integers exceeding i64/u64 range, lossy JSON fallback for specs with large numbers
  • 50+ real-world OpenAPI specs — Added specs from Stripe, GitHub, Cloudflare, OpenAI, and more with download script and batch test harness

Breaking Changes

  • Generated field names for Rust keywords changed from type_ to r#type (affects consumers of generated code)
  • Info.version is now Option<String> instead of String