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
The text was updated successfully, but these errors were encountered:
arobertn
changed the title
JSONPB json parsing not rejecting unknown fields by default according to spec
JSONPB json parsing not rejecting unknown fields by default as it should according to spec
Sep 3, 2021
So I looked into this and it appears that this would require a breaking change to the API. Specifically parseJSONPB would need to take an additional Options argument (similar to toJSONPB)
Proto3 JSON parsers are supposed to reject unknown fields unless explicitly requested to ignore them. But I cannot find an option for this in JSONPB .eitherDecode; it operates in ignore mode. Am I missing something?
The text was updated successfully, but these errors were encountered: