Home | History | Annotate | Download | only in common

Lines Matching refs:schema

21 // This class implements a subset of JSON Schema.
22 // See: http://www.json.com/json-schema-proposal/ for more details.
27 // The following features of JSON Schema are not implemented:
46 // There are also these departures from the JSON Schema proposal:
50 // - by default an "object" typed schema does not allow additional properties.
51 // if present, "additionalProperties" is to be a schema against which all
87 // Classifies a Value as one of the JSON schema primitive types.
99 // Creates a validator for the specified schema.
101 // NOTE: This constructor assumes that |schema| is well formed and valid.
104 explicit JSONSchemaValidator(DictionaryValue* schema);
106 // Creates a validator for the specified schema and user-defined types. Each
108 // field. Schema objects in |schema| can refer to these types with the "$ref"
111 // NOTE: This constructor assumes that |schema| and |types| are well-formed
114 JSONSchemaValidator(DictionaryValue* schema, ListValue* types);
119 // those defined by their schema, by default.
122 // must be defined by the corresponding schema.
151 // Validates any instance node against any schema node. This is called for
154 void Validate(Value* instance, DictionaryValue* schema,
166 // Validates a JSON object against an object schema node.
167 void ValidateObject(DictionaryValue* instance, DictionaryValue* schema,
170 // Validates a JSON array against an array schema node.
171 void ValidateArray(ListValue* instance, DictionaryValue* schema,
174 // Validates a JSON array against an array schema node configured to be a
175 // tuple. In a tuple, there is one schema node for each item expected in the
177 void ValidateTuple(ListValue* instance, DictionaryValue* schema,
180 // Validate a JSON string against a string schema node.
181 void ValidateString(StringValue* instance, DictionaryValue* schema,
184 // Validate a JSON number against a number schema node.
185 void ValidateNumber(Value* instance, DictionaryValue* schema,
192 // Returns true if |schema| will allow additional items of any type.
194 DictionaryValue* schema, DictionaryValue** addition_items_schema);
196 // The root schema node.
203 // overridden by the allow_additional_properties flag on an Object schema.