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
{{ message }}
Repository navigation
The requestBody declared with $ref is not generating json_body #595
Describe the bug
If a requestBody is declared with a $ref, then no json_body property is generated. If the reference is inlined, then json_body is generated.
@kigawas are you sure? It just got a new release last week
Otherwise do you hav the link to the official openapi generator please? I've been using this one to generate custom python code and could not find a better one
(however I found a workaround to dereference my swagger file)
@Leemur89 The biggest problem is that it only supports Open API v3.0 partially and has no plan to upgrade, while fastapi has already shifted to 3.1. If some day I may have to change to use another library, I'd rather change it now.
@Leemur89 The biggest problem is that it only supports Open API v3.0 partially and has no plan to upgrade, while fastapi has already swifted to 3.1. If some day I may have to change to use another library, I'd rather change it now.
3.1 support is in progress in #856 . I would categorize this project as "lightly maintained", I am still working on it but it's (mostly) only me and it's not my focus.
Reacted by Weiliang Li, Rade Martinović, js-lowes and Raphael Smadja
Activity
kigawas commentedon Jun 13, 2022
Hi I just submitted a PR above which works with your yaml. It'll be helpful if you have some time to review
Output
Leemur89 commentedon Dec 12, 2023
hello, do you have an update on the ongoing PR? I'm facing the exact same issue :/
kigawas commentedon Dec 13, 2023
@Leemur89 This library seems not actively maintained. I recommend just using the official openapi generator
Leemur89 commentedon Dec 14, 2023
@kigawas are you sure? It just got a new release last week
Otherwise do you hav the link to the official openapi generator please? I've been using this one to generate custom python code and could not find a better one
(however I found a workaround to dereference my swagger file)
kigawas commentedon Dec 15, 2023
@Leemur89 The biggest problem is that it only supports Open API v3.0 partially and has no plan to upgrade, while fastapi has already shifted to 3.1. If some day I may have to change to use another library, I'd rather change it now.
#585
dbanty commentedon Dec 15, 2023
3.1 support is in progress in #856 . I would categorize this project as "lightly maintained", I am still working on it but it's (mostly) only me and it's not my focus.
kigawas commentedon Dec 15, 2023
@dbanty Glad to hear you are working on this!
fix: Parsing requestBody with $ref (#633)
chore: prepare release 0.21.1 (#1056)
fix: Parsing requestBody with $ref (openapi-generators#633)
chore: prepare release 0.21.1 (openapi-generators#1056)