-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Support map types #140
Comments
Just as background, I believe this is a dupe of #79. The current JSON encoder (if my memory serves me correctly) is doing things in the style of proto2. Changing the JSON encoder is kind of hard to do but I would welcome you to jump into the conversation on that other thread. |
FYI, I've prototyped swagger support for map recently. |
@achew22 I don't think it's a dupe of #79. The proto3 JSON mapping says that maps should be encoded as objects, not arrays. More important, the generated swagger document is incorrect. The gateway that's generated from this proto file will not accept the @t-yuki Please do! |
Looks like a PR that fixes this was merged. I'm going to close the issue now. If this isn't fixed feel free to reopen it or file another issue. |
The following
proto
file results in a swagger definition file that's incorrect.Maps should be represented as objects, not as arrays of objects with the
key
andvalue
properties.The text was updated successfully, but these errors were encountered: