in this PR: objutils.ExtraneousFieldPaths, used to check for JSON fields that aren't used during parsing.
It isn't implemented as part of the JSON decoder because we can't control which JSON library the kube-native decoder uses.
135 @wlan0
not in this PR:
custom JSON library that annotates errors with the "path" where they occurred. (works, but json tests need to be cleaned up)
better formatting of errors with context, i.e. util.ContextualizeErrorf (not started yet)
in this PR:
objutils.ExtraneousFieldPaths
, used to check for JSON fields that aren't used during parsing.It isn't implemented as part of the JSON decoder because we can't control which JSON library the kube-native decoder uses.
135 @wlan0
not in this PR: custom JSON library that annotates errors with the "path" where they occurred. (works, but json tests need to be cleaned up) better formatting of errors with context, i.e.
util.ContextualizeErrorf
(not started yet)