| /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. 78 out the named schema. 87 """Get pretty printed object prototype from the schema name. 90 name: string, Name of schema in the discovery document. [all …]
|
| /external/autotest/utils/frozen_chromite/third_party/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. 84 out the named schema. 93 """Get pretty printed object prototype from the schema name. 96 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 | 51 private final ConcurrentMap<Class<?>, Schema<?>> schemaCache = 52 new ConcurrentHashMap<Class<?>, Schema<?>>(); 85 /** Gets the schema for the given message type. */ 86 public <T> Schema<T> schemaFor(Class<T> messageType) { in schemaFor() 89 Schema<T> schema = (Schema<T>) schemaCache.get(messageType); in schemaFor() local 90 if (schema == null) { in schemaFor() 91 schema = schemaFactory.createSchema(messageType); in schemaFor() 93 Schema<T> previous = (Schema<T>) registerSchema(messageType, schema); in schemaFor() 95 // A new schema was registered by another thread. in schemaFor() 96 schema = previous; in schemaFor() [all …]
|
| /external/cronet/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
| D | Protobuf.java | 51 private final ConcurrentMap<Class<?>, Schema<?>> schemaCache = 52 new ConcurrentHashMap<Class<?>, Schema<?>>(); 85 /** Gets the schema for the given message type. */ 86 public <T> Schema<T> schemaFor(Class<T> messageType) { in schemaFor() 89 Schema<T> schema = (Schema<T>) schemaCache.get(messageType); in schemaFor() local 90 if (schema == null) { in schemaFor() 91 schema = schemaFactory.createSchema(messageType); in schemaFor() 93 Schema<T> previous = (Schema<T>) registerSchema(messageType, schema); in schemaFor() 95 // A new schema was registered by another thread. in schemaFor() 96 schema = previous; in schemaFor() [all …]
|
| /external/flatbuffers/scripts/ |
| D | generate_code.py | 72 def flatc(options, schema, prefix=None, include=None, data=None, cwd=tests_path): argument 78 cmd += [schema] if isinstance(schema, str) else schema 84 # Generate the code for flatbuffers reflection schema 91 schema="reflection.fbs", 101 def flatc_annotate(schema, file, include=None, cwd=tests_path): argument 105 cmd += ["--annotate", schema, file] 160 BINARY_OPTS = ["-b", "--schema", "--bfbs-comments", "--bfbs-builtins"] 178 schema="monster_test.fbs", 185 schema="monster_test.fbs", 191 schema="monster_test.fbs", [all …]
|
| /external/icing/icing/schema/ |
| D | schema-store.h | 37 #include "icing/proto/schema.pb.h" 40 #include "icing/schema/joinable-property.h" 41 #include "icing/schema/schema-type-manager.h" 42 #include "icing/schema/schema-util.h" 43 #include "icing/schema/section.h" 52 // Holds the ground truth schema proto. Tracks compatible changes to the schema 53 // and will update any derived data based on the schema proto, such as Sections, 130 // Holds information on what may have been affected by the new schema. This is 134 // Whether we are able to write the schema as determined by SetSchema's 136 // any system level IO errors that may prevent the schema from being written [all …]
|
| D | schema-store_test.cc | 15 #include "icing/schema/schema-store.h" 33 #include "icing/proto/schema.pb.h" 36 #include "icing/schema-builder.h" 37 #include "icing/schema/schema-util.h" 38 #include "icing/schema/section-manager.h" 39 #include "icing/schema/section.h" 92 // Check that the schema store directory is the *only* directory in the in TearDown() 118 SchemaProto schema = in TEST_F() local 132 schema, /*ignore_errors_and_delete_documents=*/false, in TEST_F() 140 IsOkAndHolds(Pointee(EqualsProto(schema)))); in TEST_F() [all …]
|
| D | schema-util_test.cc | 15 #include "icing/schema/schema-util.h" 22 #include "icing/proto/schema.pb.h" 23 #include "icing/schema-builder.h" 41 // Properties/fields in a schema type 49 // Create a schema with the following dependent relation: in TEST_P() 116 SchemaProto schema = SchemaBuilder() in TEST_P() local 125 SchemaUtil::Validate(schema, GetParam())); in TEST_P() 156 // Create a schema with the following dependent relation: in TEST_P() 224 SchemaProto schema = SchemaBuilder() in TEST_P() local 233 SchemaUtil::Validate(schema, GetParam())); in TEST_P() [all …]
|
| /external/libxml2/ |
| D | Android.bp | 247 cmd: "mkdir -p seed/schema && " + 248 "$(location libxml2_genseed) schema $(in) && " + 249 "mkdir -p $(genDir)/fuzz/seed/schema && " + 250 "mv -f seed/schema/* $(genDir)/fuzz/seed/schema", 252 "fuzz/seed/schema/570702_0.xsd", 253 "fuzz/seed/schema/579746_0.xsd", 254 "fuzz/seed/schema/579746_1.xsd", 255 "fuzz/seed/schema/582887_0.xsd", 256 "fuzz/seed/schema/582887-attribute.xsd", 257 "fuzz/seed/schema/582887-common.xsd", [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/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() 31 schema.columns.push_back({"type", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 34 schema.columns.push_back({"test1", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 37 schema.columns.push_back({"test2", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 40 schema.columns.push_back({"test3", SqlValue::Type::kLong, false /* is_id */, in CreateSchema() 43 return schema; in CreateSchema() 47 auto schema = CreateSchema(); in TEST() local 53 auto id_cost = DbSqliteTable::EstimateCost(schema, kRowCount, id_eq); in TEST() [all …]
|
| /external/python/google-api-python-client/docs/dyn/ |
| D | admin_directory_v1.schemas.html | 82 <p class="firstline">Deletes a schema.</p> 85 <p class="firstline">Retrieves a schema.</p> 88 <p class="firstline">Creates a schema.</p> 94 <p class="firstline">Patches a schema.</p> 97 <p class="firstline">Updates a schema.</p> 106 <pre>Deletes a schema. 110 schemaKey: string, Name or immutable ID of the schema. (required) 120 <pre>Retrieves a schema. 124 schemaKey: string, Name or immutable ID of the schema. (required) 133 { # The type of API resource. For Schema resources, this is always `admin#directory#schema`. [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/openscreen/cast/protocol/castv2/ |
| D | validation.cc | 13 #include "third_party/valijson/src/include/valijson/schema.hpp" 39 void LoadSchema(const char* schema_json, valijson::Schema* schema) { in LoadSchema() argument 43 parser.populateSchema(adapter, *schema); in LoadSchema() 47 const valijson::Schema& schema) { in Validate() argument 51 if (validator.validate(schema, document_adapter, &results)) { in Validate() 61 valijson::Schema schema; in Validate() local 63 parser.populateSchema(adapter, schema); in Validate() 65 return Validate(document, schema); in Validate() 69 static valijson::Schema schema; in ValidateStreamingMessage() local 71 std::call_once(flag, [] { LoadSchema(kStreamingSchema, &schema); }); in ValidateStreamingMessage() [all …]
|
| /external/protobuf/java/core/src/test/java/com/google/protobuf/ |
| D | AbstractSchemaTest.java | 45 private Schema<T> schema; field in AbstractSchemaTest 49 schema = schema(); in setup() 55 // Register this schema with the runtime to support processing of nested messages. in registerSchemas() 56 Protobuf.getInstance().registerSchemaOverride(schema.newInstance().getClass(), schema); in registerSchemas() local 59 protected abstract Schema<T> schema(); in schema() method in AbstractSchemaTest 78 T newMsg = schema.newInstance(); in invalidUtf8StringParsing() 80 schema.mergeFrom(newMsg, reader, ExtensionRegistryLite.getEmptyRegistry()); in invalidUtf8StringParsing() 98 T message = schema.newInstance(); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 100 schema.mergeFrom(message, truncatedData, 0, i, new ArrayDecoders.Registers()); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 111 String failureMessage, M msg, Schema<M> schema) throws IOException { in roundtrip() argument [all …]
|
| /external/cronet/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
| D | AbstractSchemaTest.java | 45 private Schema<T> schema; field in AbstractSchemaTest 49 schema = schema(); in setup() 55 // Register this schema with the runtime to support processing of nested messages. in registerSchemas() 56 Protobuf.getInstance().registerSchemaOverride(schema.newInstance().getClass(), schema); in registerSchemas() local 59 protected abstract Schema<T> schema(); in schema() method in AbstractSchemaTest 78 T newMsg = schema.newInstance(); in invalidUtf8StringParsing() 80 schema.mergeFrom(newMsg, reader, ExtensionRegistryLite.getEmptyRegistry()); in invalidUtf8StringParsing() 98 T message = schema.newInstance(); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 100 schema.mergeFrom(message, truncatedData, 0, i, new ArrayDecoders.Registers()); in mergeFromByteArrayFastPathMayThrowIndexOutOfBoundsException() 111 String failureMessage, M msg, Schema<M> schema) throws IOException { in roundtrip() argument [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 …]
|