Skip to content

v0.0.4

Choose a tag to compare

@KeremTurgutlu KeremTurgutlu released this 15 May 09:53
· 120 commits to main since this release

New Features

  • Preserve OpenAPI request content type and encode bodies accordingly (#1)
    • Problem

fastspec currently sends request bodies as JSON for generated OpenAPI calls. This works for JSON-first APIs, but not for Stripe v1 write endpoints, which expect application/x-www-form-urlencoded.

Stripe v1 also expects nested structures to be flattened:

  • metadata={"kind": "subscription"} -> metadata[kind]=subscription
  • items=[{"price": "price_..."}] -> items[0][price]=price_...