• Home
  • Raw
  • Download

Lines Matching refs:schema

140 JSONSchemaValidator::JSONSchemaValidator(DictionaryValue* schema)  in JSONSchemaValidator()  argument
141 : schema_root_(schema), default_allow_additional_properties_(false) { in JSONSchemaValidator()
144 JSONSchemaValidator::JSONSchemaValidator(DictionaryValue* schema, in JSONSchemaValidator() argument
146 : schema_root_(schema), default_allow_additional_properties_(false) { in JSONSchemaValidator()
171 DictionaryValue* schema, in Validate() argument
175 if (schema->GetString("id", &id)) { in Validate()
178 types_[id] = schema; in Validate()
180 CHECK(iter->second == schema); in Validate()
186 if (schema->GetString("$ref", &ref)) { in Validate()
200 if (schema->GetList("choices", &choices)) { in Validate()
208 if (schema->GetList("enum", &enumeration)) { in Validate()
214 schema->GetString("type", &type); in Validate()
222 ValidateObject(static_cast<DictionaryValue*>(instance), schema, path); in Validate()
224 ValidateArray(static_cast<ListValue*>(instance), schema, path); in Validate()
226 ValidateString(static_cast<StringValue*>(instance), schema, path); in Validate()
228 ValidateNumber(instance, schema, path); in Validate()
289 DictionaryValue* schema, in ValidateObject() argument
292 schema->GetDictionary("properties", &properties); in ValidateObject()
316 if (SchemaAllowsAnyAdditionalItems(schema, &additional_properties_schema)) in ValidateObject()
337 DictionaryValue* schema, in ValidateArray() argument
341 if (schema->GetDictionary("items", &single_type)) { in ValidateArray()
343 if (schema->GetInteger("minItems", &min_items)) { in ValidateArray()
352 if (schema->GetInteger("maxItems", &max_items)) { in ValidateArray()
375 ValidateTuple(instance, schema, path); in ValidateArray()
379 DictionaryValue* schema, in ValidateTuple() argument
382 schema->GetList("items", &tuple_type); in ValidateTuple()
406 if (SchemaAllowsAnyAdditionalItems(schema, &additional_properties_schema)) in ValidateTuple()
427 DictionaryValue* schema, in ValidateString() argument
433 if (schema->GetInteger("minLength", &min_length)) { in ValidateString()
442 if (schema->GetInteger("maxLength", &max_length)) { in ValidateString()
450 CHECK(!schema->HasKey("pattern")) << "Pattern is not supported."; in ValidateString()
454 DictionaryValue* schema, in ValidateNumber() argument
462 if (GetNumberFromDictionary(schema, "minimum", &minimum)) { in ValidateNumber()
469 if (GetNumberFromDictionary(schema, "maximum", &maximum)) { in ValidateNumber()
491 DictionaryValue* schema, DictionaryValue** additional_properties_schema) { in SchemaAllowsAnyAdditionalItems() argument
494 schema->GetDictionary("additionalProperties", additional_properties_schema); in SchemaAllowsAnyAdditionalItems()