-
-
Notifications
You must be signed in to change notification settings - Fork 65
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
Generic type OpenAPI generation seems not supported #332
Comments
Well spotted! It's probably related to the Kin dependency, I'll have a look this week. |
For information, this doesn't impact running code, just OpenAPI description. |
@rizerkrof identified it as a regression, it was available on previous versions. It'll be fixed for the next release :) |
Yes, regression was introduced by this commit. |
Oops my bad, I'll fix and add a test for generics args to make sure it won't happen again |
I've identified the bug. It seems unrelated to 72a07362. It seems that the generic names are not supported by OpenAPI specification:
@ccoVeille @dylanhitt I'll add a function to replace invalid characters and strip module name except last path, are you ok with this?
|
To Reproduce
Steps to reproduce the behavior:
BareSuccessResponse[ExpectedResultStruct]
Expected behavior
It should generate the proper extended types for the response
Screenshots
Framework version (please check if it happens with the last
Fuego version before posting): 0.17.0
Go version (please check if it happens with the last Go version before posting): 1.23.4
Additional context
My current workaround is explicitly specify the response type using
OptionAddResponse
. But that actually removes theBareSuccessResponse
structure.The text was updated successfully, but these errors were encountered: