We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
"type": "object"
*interface{}
interface{}
Definition property "type": "object" gets converted to *interface{} which returns an error when set to a struct or pointer pointer.
2.3.1
https://github.com/grokify/go-ringcentral/blob/28498505dba03a0d355a88e37d7c9ad1a338255b/codegen/swagger_ringcentral_spec.json
https://github.com/grokify/go-ringcentral/tree/28498505dba03a0d355a88e37d7c9ad1a338255b/codegen
java -jar swagger-codegen-cli.jar generate -c swagger_ringcentral_config.json -i swagger_ringcentral.json -l go -o .
body := ringcentral.ScimUserPatch{ Operations: []ringcentral.PatchOperationInfo{ { Op: "add", Value: ringcentral.UserInfo{ Addresses: []ringcentral.AddressInfo{ { Type_: "work", StreetAddress: "100 Main Street", Locality: "South Park", Region: "CO", PostalCode: "80440", Country: "US", }, }, }, }, }, Schemas: []string{"urn:ietf:params:scim:api:messages:2.0:PatchOp"}, }
grokify/go-ringcentral-client#10
Set to interface{} instead of *interface{}
The text was updated successfully, but these errors were encountered:
Bump. This is still an issue.
You should pretty much never use *interface{} in go, as the regular interface{} is already nil-able.
Sorry, something went wrong.
hey @moshegood, thanks for bumping this. What is the best approach for this? i could help applying changes.
Hi @HugoMario. I've got a fix to this in a PR here: #10932
No branches or pull requests
Description
Definition property
"type": "object"
gets converted to*interface{}
which returns an error when set to a struct or pointer pointer.Swagger-codegen version
2.3.1
Swagger declaration file content or url
https://github.com/grokify/go-ringcentral/blob/28498505dba03a0d355a88e37d7c9ad1a338255b/codegen/swagger_ringcentral_spec.json
Command line used for generation
https://github.com/grokify/go-ringcentral/tree/28498505dba03a0d355a88e37d7c9ad1a338255b/codegen
Steps to reproduce
Related issues/PRs
grokify/go-ringcentral-client#10
Suggest a fix/enhancement
Set to
interface{}
instead of*interface{}
The text was updated successfully, but these errors were encountered: