FFFF
Skip to content

2.3.0

Latest

Choose a tag to compare

@phalt phalt released this 24 Jul 10:01
  • Add clientele.api.Query(alias=...) for annotating a query parameter with its wire-format name via typing.Annotated, so a Python-friendly (snake_case) parameter name can be used without breaking the actual HTTP request. Clients generated from an OpenAPI spec now apply this automatically whenever a query parameter's name isn't already valid snake_case (e.g. orderByorder_by).
  • Fix generated/decorated functions sending query parameters under their sanitized Python name instead of the original API name whenever that name required sanitization (e.g. a spec's yourInput query parameter was sent as ?your_input=... instead of ?yourInput=...).
  • Major refactoring of the project structure including removing of redundant code paths (mostly left over from the old generator logic).
  • Reorganisation of the tests and their files to mirror the codebase more.
0