-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
[BUG][Go] Golang client code is incorrect with presence of oneOf/allOF #8721
Comments
I have the same issue with the python client. Has anyone found a work around? |
I have the same issue with PHP client also. V5.1.1 |
I've got the same issue with the Particular instructions (this one uses the online master branch service):
The grep command shows the presence of UNKNOWN_BASE_TYPE at various points in the generated code, which therefore doesn't compile. |
Same with using the |
Should be fixed in v6.0.0. Please give it another try. |
@wing328 , Thank you very much. I confirm it works well both in request and in response (tested with oneOf). We can close the ticket. Thanks ! |
Description
We discovered that with presence of oneOf/allOf we have presence of UNKNOWN_BASE_TYPE instead of interface{} (or other know type)
OpenAPI Generator versions
Version tested :
OpenAPI file
I tested a very simple openAPI v3 file :
Actual behavior
go
andgo-deprecated
presence of UNKNOWN_BASE_TYPE which is not a known primitive type in golangExpected behavior
The text was updated successfully, but these errors were encountered: