/external/libchrome/components/json_schema/ |
D | json_schema_validator_unittest_base.cc | 22 namespace schema = json_schema_constants; 91 std::unique_ptr<base::DictionaryValue> schema( in TestComplex() local 95 ASSERT_TRUE(schema.get()); in TestComplex() 98 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), nullptr); in TestComplex() 100 ExpectValid(TEST_SOURCE, instance.get(), schema.get(), nullptr); in TestComplex() 103 TEST_SOURCE, instance.get(), schema.get(), nullptr, "1", in TestComplex() 105 JSONSchemaValidator::kInvalidType, schema::kNumber, schema::kObject)); in TestComplex() 112 ExpectNotValid(TEST_SOURCE, instance.get(), schema.get(), nullptr, "0.url", in TestComplex() 118 std::unique_ptr<base::DictionaryValue> schema(new base::DictionaryValue()); in TestStringPattern() local 119 schema->SetString(schema::kType, schema::kString); in TestStringPattern() [all …]
|
D | json_schema_validator.cc | 26 namespace schema = json_schema_constants; 39 schema::kAny, in IsValidType() 40 schema::kArray, in IsValidType() 41 schema::kBoolean, in IsValidType() 42 schema::kInteger, in IsValidType() 43 schema::kNull, in IsValidType() 44 schema::kNumber, in IsValidType() 45 schema::kObject, in IsValidType() 46 schema::kString, in IsValidType() 52 // Maps a schema attribute name to its expected type. [all …]
|
D | json_schema_validator.h | 22 // This class implements a subset of JSON Schema. 23 // See: http://www.json.com/json-schema-proposal/ for more details. 28 // 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 75 // attributes will make the schema validation fail. 97 // Classifies a Value as one of the JSON schema primitive types. 109 // Verifies if |schema| is a valid JSON v3 schema. When this validation passes 110 // then |schema| is valid JSON that can be parsed into a DictionaryValue, [all …]
|
/external/python/google-api-python-client/googleapiclient/ |
D | schema.py | 15 """Schema processing for discovery based APIs 17 Schemas holds an APIs discovery schemas. It can return those schema as 19 conform to the schema. 21 For example, given the schema: 23 schema = \"\"\"{ 45 s = Schemas(schema) 57 The constructor takes a discovery document in which to look up named schema. 79 out the named schema. 88 """Get pretty printed object prototype from the schema name. 91 name: string, Name of schema in the discovery document. [all …]
|
/external/libchrome/components/policy/core/common/ |
D | schema.cc | 5 #include "components/policy/core/common/schema.h" 27 namespace schema = json_schema_constants; 39 // Maps schema "id" attributes to the corresponding SchemaNode index. 82 { schema::kArray, base::Value::Type::LIST }, in SchemaTypeToValueType() 83 { schema::kBoolean, base::Value::Type::BOOLEAN }, in SchemaTypeToValueType() 84 { schema::kInteger, base::Value::Type::INTEGER }, in SchemaTypeToValueType() 85 { schema::kNull, base::Value::Type::NONE }, in SchemaTypeToValueType() 86 { schema::kNumber, base::Value::Type::DOUBLE }, in SchemaTypeToValueType() 87 { schema::kObject, base::Value::Type::DICTIONARY }, in SchemaTypeToValueType() 88 { schema::kString, base::Value::Type::STRING }, in SchemaTypeToValueType() [all …]
|
D | schema.h | 25 // Option flags passed to Schema::Validate() and Schema::Normalize(), describing 27 // Note that in Schema::Normalize() allowed errors will be dropped and thus 30 // the one in root) have unknown property name according to schema. 31 // Invalid error indicates a validation failure against the schema. As 51 class Schema; variable 53 typedef std::vector<Schema> SchemaList; 60 // Schema validation is based on a subset of the JSON Schema standard. 61 // TODO(crbug.com/856901): Document the supported subset of the JSON Schema 63 class POLICY_EXPORT Schema { 68 // Builds an empty, invalid schema. [all …]
|
D | schema_unittest.cc | 5 #include "components/policy/core/common/schema.h" 156 Schema schema = Schema::Parse(content, &error); in ParseFails() local 157 if (schema.valid()) in ParseFails() 164 Schema schema, in TestSchemaValidationHelper() argument 171 // Test that Schema::Validate() works as expected. in TestSchemaValidationHelper() 173 bool returned = schema.Validate(value, strategy, nullptr, &error); in TestSchemaValidationHelper() 176 // Test that Schema::Normalize() will return the same value as in TestSchemaValidationHelper() 177 // Schema::Validate(). in TestSchemaValidationHelper() 182 schema.Normalize(cloned_value.get(), strategy, nullptr, &error, &touched); in TestSchemaValidationHelper() 185 bool strictly_valid = schema.Validate(value, SCHEMA_STRICT, nullptr, &error); in TestSchemaValidationHelper() [all …]
|
D | schema_map_unittest.cc | 15 #include "components/policy/core/common/schema.h" 49 Schema CreateTestSchema() { in CreateTestSchema() 51 Schema schema = Schema::Parse(kTestSchema, &error); in CreateTestSchema() local 52 if (!schema.valid()) in CreateTestSchema() 54 return schema; in CreateTestSchema() 58 Schema schema = CreateTestSchema(); in CreateTestMap() local 60 component_map["extension-1"] = schema; in CreateTestMap() 61 component_map["extension-2"] = schema; in CreateTestMap() 62 component_map["legacy-extension"] = Schema(); in CreateTestMap() 84 // The Chrome schema does not count as a component. in TEST_F() [all …]
|
/external/protobuf/java/core/src/main/java/com/google/protobuf/ |
D | Protobuf.java | 50 private final ConcurrentMap<Class<?>, Schema<?>> schemaCache = 51 new ConcurrentHashMap<Class<?>, Schema<?>>(); 87 /** Gets the schema for the given message type. */ 88 public <T> Schema<T> schemaFor(Class<T> messageType) { in schemaFor() 91 Schema<T> schema = (Schema<T>) schemaCache.get(messageType); in schemaFor() local 92 if (schema == null) { in schemaFor() 93 schema = schemaFactory.createSchema(messageType); in schemaFor() 95 Schema<T> previous = (Schema<T>) registerSchema(messageType, schema); in schemaFor() 97 // A new schema was registered by another thread. in schemaFor() 98 schema = previous; in schemaFor() [all …]
|
/external/icing/icing/schema/ |
D | schema-store.h | 31 #include "icing/proto/schema.pb.h" 33 #include "icing/schema/schema-util.h" 34 #include "icing/schema/section-manager.h" 35 #include "icing/schema/section.h" 44 // Holds the ground truth schema proto. Tracks compatible changes to the schema 45 // and will update any derived data based on the schema proto, such as Sections, 61 // Holds information on what may have been affected by the new schema. This is 65 // Whether we are able to write the schema as determined by SetSchema's 67 // any system level IO errors that may prevent the schema from being written 71 // Whether the new schema changes invalidate the index. [all …]
|
D | schema-util_test.cc | 15 #include "icing/schema/schema-util.h" 24 #include "icing/proto/schema.pb.h" 26 #include "icing/schema-builder.h" 36 // Properties/fields in a schema type 69 // Create a schema with the following dependencies: in TEST() 135 SchemaProto schema = SchemaBuilder() in TEST() local 144 SchemaUtil::Validate(schema)); in TEST() 155 // Create a schema with the following dependencies: in TEST() 222 SchemaProto schema = SchemaBuilder() in TEST() local 231 SchemaUtil::Validate(schema)); in TEST() [all …]
|
D | schema-store_test.cc | 15 #include "icing/schema/schema-store.h" 27 #include "icing/proto/schema.pb.h" 28 #include "icing/schema-builder.h" 29 #include "icing/schema/schema-util.h" 30 #include "icing/schema/section-manager.h" 31 #include "icing/schema/section.h" 113 // "Corrupt" the ground truth schema by adding new data to it. This will mess in TEST_F() 114 // up the checksum of the schema store in TEST_F() 121 const std::string schema_file = absl_ports::StrCat(test_dir_, "/schema.pb"); in TEST_F() 151 // will mess up the initialization of schema store, causing everything to be in TEST_F() [all …]
|
/external/libxml2/ |
D | Android.bp | 254 cmd: "mkdir -p $(genDir)/fuzz/seed/schema && " + 257 "$${TOP_DIR}/$(location libxml2_genseed) schema " + 260 "fuzz/seed/schema/570702_0.xsd", 261 "fuzz/seed/schema/579746_0.xsd", 262 "fuzz/seed/schema/579746_1.xsd", 263 "fuzz/seed/schema/582887_0.xsd", 264 "fuzz/seed/schema/582887-attribute.xsd", 265 "fuzz/seed/schema/582887-common.xsd", 266 "fuzz/seed/schema/582887-element.xsd", 267 "fuzz/seed/schema/582906-1_0.xsd", [all …]
|
/external/python/google-api-python-client/docs/dyn/ |
D | discovery_v1.apis.html | 105 …"properties": { # If this is a schema for an object, list the schema for each property of this obj… 106 …"a_key": # Object with schema name: JsonSchema # A single property of this object. The value is it… 109 …g", # The value type for this schema. A list of values can be found here: http://tools.ietf.org/ht… 111 …n the value. For more details see: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23 113 …"items": # Object with schema name: JsonSchema # If this is a schema for an array, this property i… 117 … interpret the entire entity. Its value must exist in a map of descriminant values to schema names. 118 "map": [ # The map of discriminant value to schema to use for parsing.. 127 "id": "A String", # Unique identifier for this schema. 135 …ionalProperties": # Object with schema name: JsonSchema # If this is a schema for an object, this … 142 …$ref": "A String", # A reference to another schema. The value of this property is the "id" of anot… [all …]
|
D | admin_directory_v1.schemas.html | 79 <p class="firstline">Delete schema</p> 82 <p class="firstline">Retrieve schema</p> 85 <p class="firstline">Create schema.</p> 91 <p class="firstline">Update schema. This method supports patch semantics.</p> 94 <p class="firstline">Update schema</p> 98 <pre>Delete schema 102 schemaKey: string, Name or immutable ID of the schema (required) 108 <pre>Retrieve schema 112 schemaKey: string, Name or immutable ID of the schema (required) 117 { # JSON template for Schema resource in Directory API. [all …]
|
/external/jackson-databind/src/main/java/com/fasterxml/jackson/databind/jsonschema/ |
D | JsonSchema.java | 11 * Container for a logical JSON Schema instance. 12 * Internally schema data is stored as a JSON Tree 14 * of schema document) 17 * @see <a href="http://json-schema.org/">JSON Schema</a> 20 …* <a href="https://github.com/FasterXML/jackson-module-jsonSchema">JSON Schema generator module<… 25 private final ObjectNode schema; field in JsonSchema 28 * Main constructor for schema instances. 36 public JsonSchema(ObjectNode schema) in JsonSchema() argument 38 this.schema = schema; in JsonSchema() 42 * Method for accessing root JSON object of the contained schema. [all …]
|
/external/llvm-project/clang/test/Index/ |
D | comment-xml-schema.c | 3 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 5 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 6 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 7 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 8 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 9 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 10 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 11 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 12 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 13 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… [all …]
|
/external/clang/test/Index/ |
D | comment-xml-schema.c | 3 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 5 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 6 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 7 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 8 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 9 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 10 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 11 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 12 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… 13 // RUN: xmllint --noout --relaxng %S/../../bindings/xml/comment-xml-schema.rng %S/Inputs/CommentXML… [all …]
|
/external/perfetto/src/trace_processor/sqlite/ |
D | db_sqlite_table_unittest.cc | 26 Table::Schema CreateSchema() { in CreateSchema() 27 Table::Schema schema; in CreateSchema() local 28 schema.columns.push_back({"id", SqlValue::Type::kLong, true /* is_id */, in CreateSchema() 30 schema.columns.push_back({"type", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 32 schema.columns.push_back({"test1", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 34 schema.columns.push_back({"test2", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 36 schema.columns.push_back({"test3", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 38 return schema; in CreateSchema() 42 auto schema = CreateSchema(); in TEST() local 48 auto id_cost = DbSqliteTable::EstimateCost(schema, kRowCount, id_eq); in TEST() [all …]
|
/external/flatbuffers/src/ |
D | idl_gen_fbs.cpp | 46 auto &schema = *_schema; in GenNameSpace() local 47 schema += "namespace "; in GenNameSpace() 50 if (it != name_space.components.begin()) schema += "."; in GenNameSpace() 51 schema += *it; in GenNameSpace() 53 schema += ";\n\n"; in GenNameSpace() 56 // Generate a flatbuffer schema from the Parser's internal representation. 75 std::string schema; in GenerateFBS() local 76 schema += "// Generated from " + file_name + ".proto\n\n"; in GenerateFBS() 91 schema += "include \"" + basename + ".fbs\";\n"; in GenerateFBS() 94 if (num_includes) schema += "\n"; in GenerateFBS() [all …]
|
/external/protobuf/java/core/src/test/java/com/google/protobuf/ |
D | AbstractSchemaTest.java | 47 private Schema<T> schema; field in AbstractSchemaTest 51 schema = schema(); in setup() 57 // Register this schema with the runtime to support processing of nested messages. in registerSchemas() 58 Protobuf.getInstance().registerSchemaOverride(schema.newInstance().getClass(), schema); in registerSchemas() local 61 protected abstract Schema<T> schema(); in schema() method in AbstractSchemaTest 80 T newMsg = schema.newInstance(); in invalidUtf8StringParsing() 82 schema.mergeFrom(newMsg, reader, ExtensionRegistryLite.getEmptyRegistry()); in invalidUtf8StringParsing() 100 T message = schema.newInstance(); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 102 schema.mergeFrom(message, truncatedData, 0, i, new ArrayDecoders.Registers()); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 113 String failureMessage, M msg, Schema<M> schema) throws IOException { in roundtrip() argument [all …]
|
/external/openscreen/cast/protocol/castv2/ |
D | validation.cc | 13 #include "third_party/valijson/src/include/valijson/schema.hpp" 42 void LoadSchema(const char* schema_json, valijson::Schema* schema) { in LoadSchema() argument 46 parser.populateSchema(adapter, *schema); in LoadSchema() 50 const valijson::Schema& schema) { in Validate() argument 54 if (validator.validate(schema, document_adapter, &results)) { in Validate() 64 valijson::Schema schema; in Validate() local 66 parser.populateSchema(adapter, schema); in Validate() 68 return Validate(document, schema); in Validate() 72 static valijson::Schema schema; in ValidateStreamingMessage() local 74 std::call_once(flag, [] { LoadSchema(kStreamingSchema, &schema); }); in ValidateStreamingMessage() [all …]
|
/external/python/pyasn1/docs/source/pyasn1/ |
D | contents.rst | 9 post-1995, revision (X.680) introduced some changes to the schema 14 As for ASN.1 schema language, pyasn1 package does 42 comprise a *schema* describing data structures of unbounded complexity. 60 ASN.1 schema can be "instantiated" by essentially putting some concrete value 61 into the type container. Such instantiated schema object can still be 62 used as a schema, but additionally it can play a role of a value in the 78 To tell instantiated schema object from just a schema, the *.isValue* 83 schema = RSAPublicKey() 85 # non-instantiated schema 86 assert schema.isValue == False [all …]
|
/external/flatbuffers/include/flatbuffers/ |
D | registry.h | 25 // Simply pre-populate it with all schema filenames that may be in use, and 27 // schema. 33 Schema schema; in Register() local 34 schema.path_ = schema_path; in Register() 35 schemas_[file_identifier] = schema; in Register() 50 // Load and parse the schema. in FlatBufferToText() 66 // Load and parse the schema. in TextToFlatBuffer() 90 // Find the schema, if not, exit. in LoadSchema() 97 auto &schema = it->second; in LoadSchema() local 98 // Load the schema from disk. If not, exit. in LoadSchema() [all …]
|
/external/oss-fuzz/projects/alembic/ |
D | alembic_dump_info_fuzzer.cc | 64 template <typename T> void dumpAttributes(T const &schema) { in dumpAttributes() argument 66 const size_t meshPropertyCount = schema.getNumProperties(); in dumpAttributes() 69 const PropertyHeader &header = schema.getPropertyHeader(p); in dumpAttributes() 74 schema.getNumSamples(); in dumpAttributes() 76 schema.getUVsParam().getNumSamples(); in dumpAttributes() 80 const ICompoundProperty geoParam = schema.getArbGeomParams(); in dumpAttributes() 94 const IPolyMeshSchema &schema = mesh.getSchema(); in dumpPolyMesh() local 97 dumpAttributes(schema); in dumpPolyMesh() 103 const ISubDSchema &schema = mesh.getSchema(); in dumpSubD() local 105 dumpAttributes(schema); in dumpSubD() [all …]
|