You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If a get path has a parameter using $ref to point to #/components/parameters, the generated API lacks the corresponding kwarg. If one "hoists" the indirect parameter up into the path's parameters, it works as expected.
To Reproduce
See this repo for a reproducible example.
And see this repo for the same schema without the $ref, working as expected.
Expected behavior
I expect to see the optional pagekwarg in both generated APIs.
Fixes#595
Perhaps similar solution can be applied to #605
## Description
The requestBody with $ref was not handled. `requestBodies` in components
should be injected into `_add_body` function.
---------
Co-authored-by: Dylan Anthony <dbanty@users.noreply.github.com>
micha91
pushed a commit
to micha91/openapi-python-client
that referenced
this issue
May 13, 2025
Fixesopenapi-generators#595
Perhaps similar solution can be applied to openapi-generators#605
## Description
The requestBody with $ref was not handled. `requestBodies` in components
should be injected into `_add_body` function.
---------
Co-authored-by: Dylan Anthony <dbanty@users.noreply.github.com>
Describe the bug
If a
get
path has a parameter using$ref
to point to#/components/parameters
, the generated API lacks the correspondingkwarg
. If one "hoists" the indirect parameter up into the path'sparameters
, it works as expected.To Reproduce
See this repo for a reproducible example.
And see this repo for the same schema without the
$ref
, working as expected.Expected behavior
I expect to see the optional
page
kwarg
in both generated APIs.I see this in the
$ref
example:and this in the
noref
example:OpenAPI Spec File
A link to your openapi.json which produces this issue.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: