Lines Matching refs:schema
23 // This class implements a subset of JSON Schema.
24 // See: http://www.json.com/json-schema-proposal/ for more details.
29 // The following features of JSON Schema are not implemented:
47 // There are also these departures from the JSON Schema proposal:
51 // - by default an "object" typed schema does not allow additional properties.
52 // if present, "additionalProperties" is to be a schema against which all
76 // attributes will make the schema validation fail.
98 // Classifies a Value as one of the JSON schema primitive types.
110 // Verifies if |schema| is a valid JSON v3 schema. When this validation passes
111 // then |schema| is valid JSON that can be parsed into a DictionaryValue,
113 // Returns the parsed DictionaryValue when |schema| validated, otherwise
120 const std::string& schema,
126 const std::string& schema,
130 // Creates a validator for the specified schema.
132 // NOTE: This constructor assumes that |schema| is well formed and valid.
135 explicit JSONSchemaValidator(base::DictionaryValue* schema);
137 // Creates a validator for the specified schema and user-defined types. Each
139 // field. Schema objects in |schema| can refer to these types with the "$ref"
142 // NOTE: This constructor assumes that |schema| and |types| are well-formed
145 JSONSchemaValidator(base::DictionaryValue* schema, base::ListValue* types);
150 // those defined by their schema, by default.
153 // must be defined by the corresponding schema.
182 // Validates any instance node against any schema node. This is called for
186 const base::DictionaryValue* schema,
200 // Validates a JSON object against an object schema node.
202 const base::DictionaryValue* schema,
205 // Validates a JSON array against an array schema node.
207 const base::DictionaryValue* schema,
210 // Validates a JSON array against an array schema node configured to be a
211 // tuple. In a tuple, there is one schema node for each item expected in the
214 const base::DictionaryValue* schema,
217 // Validate a JSON string against a string schema node.
219 const base::DictionaryValue* schema,
222 // Validate a JSON number against a number schema node.
224 const base::DictionaryValue* schema,
232 // Returns true if |schema| will allow additional items of any type.
234 const base::DictionaryValue* schema,
237 // The root schema node.
244 // overridden by the allow_additional_properties flag on an Object schema.