-
Notifications
You must be signed in to change notification settings - Fork 53
Support enum models in queryparams #352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Send in an example spec where this issue occurs please |
|
The problem here is inlined generation from the request parameters section. Fabrikt does not know what classname to give the generated enum. If you move the definitions to the schemas section and reference it, it will work fine:
I found and fixed a different fabrikt bug with array generation from the sample you provided though. |
Thanks for the fix @cjbooms !! This is great however I failed to specify this is for client generation, not the server. It generates code that fails to compile. |
Should be fixed centrally within fabrikt's type system. Please check here and report back if still an issue: |
This works in every openapi generator I've used. When specifying an enum as a queryparam in fabrikt, the generator doesn't fail, but the built code is invalid and doesn't build.
Please support this! Its the biggest issue we run into for extensibility using fabrikt as an alternative for our OAPI models generated code-first in spring boot's springdoc library.
Thanks for any consideration here.
The text was updated successfully, but these errors were encountered: