Home | History | Annotate | Download | only in common

Lines Matching defs:schema

47                                            const base::StringPiece& schema) {
51 schema,
63 CHECK(result.get()) << error_message << " for schema " << schema;
64 CHECK(result->IsType(base::Value::TYPE_LIST)) << " for schema " << schema;
110 // with key |key| in |schema| will be updated to |schema_namespace| + "." +
111 // |schema[key]|.
113 base::DictionaryValue* schema,
115 if (!schema->HasKey(key))
119 CHECK(schema->GetString(key, &old_id));
121 schema->SetString(key, schema_namespace + "." + old_id);
124 // Modify all "$ref" keys anywhere in |schema| to be prefxied by
144 // Modify all objects in the "types" section of the schema to be prefixed by
147 base::DictionaryValue* schema) {
148 if (!schema->HasKey("types"))
151 // Add the namespace to all of the types defined in this schema
153 CHECK(schema->GetList("types", &types));
162 // Modify the schema so that all types are fully qualified.
164 base::DictionaryValue* schema) {
165 PrefixTypesWithNamespace(schema_namespace, schema);
166 PrefixRefsWithNamespace(schema_namespace, schema);
200 const base::StringPiece& schema) {
201 scoped_ptr<base::ListValue> schema_list(LoadSchemaList(name, schema));
205 base::DictionaryValue* schema = NULL;
209 CHECK(value.release()->GetAsDictionary(&schema));
212 CHECK(schema->GetString("namespace", &schema_namespace));
213 PrefixWithNamespace(schema_namespace, schema);
214 schemas_[schema_namespace] = make_linked_ptr(schema);