Right now we have the following C++ schema validators:
components/policy/core/common/schema.h
-validates a value against a schema
components/json_schema/json_schema_validator.h
-validates a schema
-validates a value against a schema (never used)
Both of these support different kind of schema features.
Task 1: Unify schema.h and json_schema_validator.h into one class and remove unused features. Also ensure that all features used in value validation and schema validation are the same.
Task 2: Create a python schema validator with the same capabilities as the C++ schema validator. Use it as a presubmit test to validate all schemas and validation_schemas and validate all the examples against the schema in policy_templates.json
Task 3: Write documentation about the supported schema validation features (see crbug.com/856901 )
Comment 1 by bugdroid1@chromium.org
, Aug 22