Open veqryn opened 2 months ago
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