Display schema validation errors
This CL makes sure all JSON device policies use DecodeJsonStringAndDropUnknownBySchema to decode the proto and adhere to the associated schema. Unknown properties are dropped. If the json string can't be decoded or does not comply with the associated schema in policy_templates.json, the policy value will be set to the original json string. This way, the faulty value can still be seen in chrome://policy along with any errors/warnings. Bug: 855054 Change-Id: I73a2bc7cc88a293b06339482437f88ac48932b83 Reviewed-on: https://chromium-review.googlesource.com/1163507Reviewed-by:Julian Pastarmov <pastarmovj@chromium.org> Reviewed-by:
Lutz Justen <ljusten@chromium.org> Commit-Queue: Alexander Hendrich <hendrich@chromium.org> Cr-Commit-Position: refs/heads/master@{#585451}
Showing
Please register or sign in to comment