Skip to content
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

proto: ignore unknown fields in map entries #561

Merged
merged 1 commit into from
Mar 14, 2018
Merged

proto: ignore unknown fields in map entries #561

merged 1 commit into from
Mar 14, 2018

Conversation

dsnet
Copy link
Member

@dsnet dsnet commented Mar 14, 2018

A proto map entry is conceptually a message with two fields.
In the same way that unknown fields don't cause a parsing error,
map parsing should ignore unknown fields and tags.
Similarly, it treats a missing field as the zero value.

Fixes #403

A proto map entry is conceptually a message with two fields.
In the same way that unknown fields don't cause a parsing error,
map parsing should ignore unknown fields and tags.
Similarly, it treats a missing field as the zero value.

Fixes #403
@dsnet dsnet requested a review from neild March 14, 2018 21:09
@dsnet dsnet merged commit b028a76 into dev Mar 14, 2018
@dsnet dsnet deleted the dev-unknownmap branch March 14, 2018 22:21
@golang golang locked and limited conversation to collaborators Jun 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants