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
I believe this is wrong, because additionalProperties: {} can either imply a second level map, or an object without fields. It should be additionalProperties: true
When turned into OpenAPI client sdk for golang, it becomes this:
I don't really understand where the additionalProperties comes from in the first place, the any.proto definition doesn't have that field. In any case, if this is breaking you, I'd be happy to review a PR to fix it. Thanks!
🐛 Bug Report
I believe the generated OpenAPI v2 yaml for a google.protobuf.Any is incorrect.
This may also occur on other objects that use
additionalProperties: {}
To Reproduce
Expected behavior
I expect the generated yaml to look like this:
When turned into OpenAPI client sdk for golang, it would become something like this:
Actual Behavior
I believe this is wrong, because
additionalProperties: {}
can either imply a second level map, or an object without fields. It should beadditionalProperties: true
When turned into OpenAPI client sdk for golang, it becomes this:
or
In both cases, the client fails on trying to unmarshal into this struct.
Your Environment
v2.22.0
Linux and Mac
The text was updated successfully, but these errors were encountered: