Home
last modified time | relevance | path

Searched full:schema (Results 1 – 25 of 10607) sorted by relevance

12345678910>>...425

/aosp_15_r20/external/libchrome/components/json_schema/
H A Djson_schema_validator_unittest_base.cc22 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 …]
H A Djson_schema_validator.cc26 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 …]
/aosp_15_r20/external/libchrome/components/policy/core/common/
H A Dschema.cc5 #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 …]
H A Dschema_unittest.cc5 #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 …]
/aosp_15_r20/external/pytorch/test/cpp/jit/
H A Dtest_schema_info.cpp10 c10::FunctionSchema schema = torch::jit::parseSchema( in TEST() local
12 ASSERT_TRUE(schema.is_aliasing({SchemaArgType::output, 0})); in TEST()
13 ASSERT_TRUE(schema.is_aliasing({SchemaArgType::output, 1})); in TEST()
14 ASSERT_TRUE(schema.is_aliasing({SchemaArgType::input, 0})); in TEST()
15 ASSERT_TRUE(schema.is_aliasing({SchemaArgType::input, 1})); in TEST()
16 ASSERT_FALSE(schema.is_aliasing({SchemaArgType::input, 2})); in TEST()
20 c10::FunctionSchema schema = torch::jit::parseSchema( in TEST() local
22 ASSERT_THROW(schema.is_aliasing({SchemaArgType::input, 4}), c10::Error); in TEST()
23 ASSERT_THROW(schema.is_aliasing({SchemaArgType::output, 4}), c10::Error); in TEST()
27 c10::FunctionSchema schema = torch::jit::parseSchema( in TEST() local
[all …]
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft-next/
H A Dref.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/next/schema",
36 "schema": { object
37 "$schema": "https://json-schema.org/draft/next/schema",
58 "schema": { object
59 "$schema": "https://json-schema.org/draft/next/schema",
80 "schema": { object
81 "$schema": "https://json-schema.org/draft/next/schema",
128 "schema": { object
129 "$schema": "https://json-schema.org/draft/next/schema",
[all …]
H A DunevaluatedProperties.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/next/schema",
25 "description": "unevaluatedProperties schema",
26 "schema": { object
27 "$schema": "https://json-schema.org/draft/next/schema",
58 "schema": { object
59 "$schema": "https://json-schema.org/draft/next/schema",
80 "schema": { object
81 "$schema": "https://json-schema.org/draft/next/schema",
108 "schema": { object
[all …]
H A DunevaluatedItems.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/next/schema",
23 "schema": { object
24 "$schema": "https://json-schema.org/draft/next/schema",
41 "description": "unevaluatedItems as schema",
42 "schema": { object
43 "$schema": "https://json-schema.org/draft/next/schema",
66 "schema": { object
67 "$schema": "https://json-schema.org/draft/next/schema",
81 "schema": { object
[all …]
H A DdynamicRef.json3 …"description": "A $dynamicRef to a $dynamicAnchor in the same schema resource behaves like a norma…
4 "schema": { object
5 "$schema": "https://json-schema.org/draft/next/schema",
6 "$id": "https://test.json-schema.org/dynamicRef-dynamicAnchor-same-schema/root",
30 …"description": "A $ref to a $dynamicAnchor in the same schema resource behaves like a normal $ref …
31 "schema": { object
32 "$schema": "https://json-schema.org/draft/next/schema",
33 "$id": "https://test.json-schema.org/ref-dynamicAnchor-same-schema/root",
57 …olves to the first $dynamicAnchor still in scope that is encountered when the schema is evaluated",
58 "schema": { object
[all …]
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2019-09/
H A Dref.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
36 "schema": { object
37 "$schema": "https://json-schema.org/draft/2019-09/schema",
58 "schema": { object
59 "$schema": "https://json-schema.org/draft/2019-09/schema",
80 "schema": { object
81 "$schema": "https://json-schema.org/draft/2019-09/schema",
128 "schema": { object
129 "$schema": "https://json-schema.org/draft/2019-09/schema",
[all …]
H A DunevaluatedProperties.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
25 "description": "unevaluatedProperties schema",
26 "schema": { object
27 "$schema": "https://json-schema.org/draft/2019-09/schema",
58 "schema": { object
59 "$schema": "https://json-schema.org/draft/2019-09/schema",
80 "schema": { object
81 "$schema": "https://json-schema.org/draft/2019-09/schema",
108 "schema": { object
[all …]
H A DunevaluatedItems.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/2019-09/schema",
23 "schema": { object
24 "$schema": "https://json-schema.org/draft/2019-09/schema",
41 "description": "unevaluatedItems as schema",
42 "schema": { object
43 "$schema": "https://json-schema.org/draft/2019-09/schema",
66 "schema": { object
67 "$schema": "https://json-schema.org/draft/2019-09/schema",
81 "schema": { object
[all …]
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft2020-12/
H A Dref.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/2020-12/schema",
36 "schema": { object
37 "$schema": "https://json-schema.org/draft/2020-12/schema",
58 "schema": { object
59 "$schema": "https://json-schema.org/draft/2020-12/schema",
80 "schema": { object
81 "$schema": "https://json-schema.org/draft/2020-12/schema",
128 "schema": { object
129 "$schema": "https://json-schema.org/draft/2020-12/schema",
[all …]
H A DunevaluatedProperties.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/2020-12/schema",
25 "description": "unevaluatedProperties schema",
26 "schema": { object
27 "$schema": "https://json-schema.org/draft/2020-12/schema",
58 "schema": { object
59 "$schema": "https://json-schema.org/draft/2020-12/schema",
80 "schema": { object
81 "$schema": "https://json-schema.org/draft/2020-12/schema",
108 "schema": { object
[all …]
H A DunevaluatedItems.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/2020-12/schema",
23 "schema": { object
24 "$schema": "https://json-schema.org/draft/2020-12/schema",
41 "description": "unevaluatedItems as schema",
42 "schema": { object
43 "$schema": "https://json-schema.org/draft/2020-12/schema",
66 "schema": { object
67 "$schema": "https://json-schema.org/draft/2020-12/schema",
81 "schema": { object
[all …]
H A DdynamicRef.json3 …"description": "A $dynamicRef to a $dynamicAnchor in the same schema resource behaves like a norma…
4 "schema": { object
5 "$schema": "https://json-schema.org/draft/2020-12/schema",
6 "$id": "https://test.json-schema.org/dynamicRef-dynamicAnchor-same-schema/root",
30 …"description": "A $dynamicRef to an $anchor in the same schema resource behaves like a normal $ref…
31 "schema": { object
32 "$schema": "https://json-schema.org/draft/2020-12/schema",
33 "$id": "https://test.json-schema.org/dynamicRef-anchor-same-schema/root",
57 …"description": "A $ref to a $dynamicAnchor in the same schema resource behaves like a normal $ref …
58 "schema": { object
[all …]
/aosp_15_r20/out/soong/raw-aosp_shiba/c0/
Dc018904978afe26d46ac6fc20c7b3cdd997fa8c7713schema && __SBOX_SANDBOX_DIR__/tools/out/bin/libxml2_genseed schema external/libxml2/test/schemas/…
715 from: "out/fuzz/seed/schema/570702_0.xsd"
716 …to: "out/soong/.intermediates/external/libxml2/libxml2_schema_fuzz_corpus/gen/fuzz/seed/schema/570…
719 from: "out/fuzz/seed/schema/579746_0.xsd"
720 …to: "out/soong/.intermediates/external/libxml2/libxml2_schema_fuzz_corpus/gen/fuzz/seed/schema/579…
723 from: "out/fuzz/seed/schema/579746_1.xsd"
724 …to: "out/soong/.intermediates/external/libxml2/libxml2_schema_fuzz_corpus/gen/fuzz/seed/schema/579…
727 from: "out/fuzz/seed/schema/582887-attribute.xsd"
728 …to: "out/soong/.intermediates/external/libxml2/libxml2_schema_fuzz_corpus/gen/fuzz/seed/schema/582…
731 from: "out/fuzz/seed/schema/582887-common.xsd"
[all …]
/aosp_15_r20/external/icing/icing/schema/
H A Dschema-store.h40 #include "icing/proto/schema.pb.h"
43 #include "icing/schema/joinable-property.h"
44 #include "icing/schema/schema-type-manager.h"
45 #include "icing/schema/schema-util.h"
46 #include "icing/schema/scorable_property_manager.h"
47 #include "icing/schema/section.h"
57 // Holds the ground truth schema proto. Tracks compatible changes to the schema
58 // and will update any derived data based on the schema proto, such as Sections,
175 // Holds information on what may have been affected by the new schema. This is
179 // Whether we are able to write the schema as determined by SetSchema's
[all …]
/aosp_15_r20/external/sdk-platform-java/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/
H A DSchemaServiceClient.java47 import com.google.pubsub.v1.Schema;
60 * Service Description: Service for doing schema-related operations.
73 * Schema schema = Schema.newBuilder().build();
75 * Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
187 * Creates a schema.
199 * Schema schema = Schema.newBuilder().build();
201 * Schema response = schemaServiceClient.createSchema(parent, schema, schemaId);
205 * @param parent Required. The name of the project in which to create the schema. Format is
207 * @param schema Required. The schema object to create.
208 * <p>This schema's `name` parameter is ignored. The schema object returned by CreateSchema
[all …]
/aosp_15_r20/external/google-cloud-java/java-dataplex/proto-google-cloud-dataplex-v1/src/main/java/com/google/cloud/dataplex/v1/
H A DSchema.java25 * Schema information describing the structure and layout of the data.
28 * Protobuf type {@code google.cloud.dataplex.v1.Schema}
30 public final class Schema extends com.google.protobuf.GeneratedMessageV3 class
32 // @@protoc_insertion_point(message_implements:google.cloud.dataplex.v1.Schema)
35 // Use Schema.newBuilder() to construct.
36 private Schema(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Schema() method in Schema
40 private Schema() { in Schema() method in Schema
49 return new Schema(); in newInstance()
68 com.google.cloud.dataplex.v1.Schema.class, in internalGetFieldAccessorTable()
69 com.google.cloud.dataplex.v1.Schema.Builder.class); in internalGetFieldAccessorTable()
[all …]
/aosp_15_r20/external/libxml2/
H A DAndroid.bp234 cmd: "mkdir -p seed/schema && " +
235 "$(location libxml2_genseed) schema $(locations test/schemas/*.xsd) && " +
236 "mkdir -p $(genDir)/fuzz/seed/schema && " +
237 "mv -f seed/schema/* $(genDir)/fuzz/seed/schema",
239 "fuzz/seed/schema/570702_0.xsd",
240 "fuzz/seed/schema/579746_0.xsd",
241 "fuzz/seed/schema/579746_1.xsd",
242 "fuzz/seed/schema/582887_0.xsd",
243 "fuzz/seed/schema/582887-attribute.xsd",
244 "fuzz/seed/schema/582887-common.xsd",
[all …]
/aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft-next/optional/
H A Decmascript-regex.json4 "schema": { object
5 "$schema": "https://json-schema.org/draft/next/schema",
24 "schema": { object
25 "$schema": "https://json-schema.org/draft/next/schema",
44 "schema": { object
45 "$schema": "https://json-schema.org/draft/next/schema",
64 "schema": { object
65 "$schema": "https://json-schema.org/draft/next/schema",
84 "schema": { object
85 "$schema": "https://json-schema.org/draft/next/schema",
[all …]
/aosp_15_r20/external/json-schema-validator/src/main/java/com/networknt/schema/
H A DJsonSchemaFactory.java17 package com.networknt.schema;
21 import com.networknt.schema.SpecVersion.VersionFlag;
22 import com.networknt.schema.resource.DefaultSchemaLoader;
23 import com.networknt.schema.resource.SchemaLoader;
24 import com.networknt.schema.resource.SchemaLoaders;
25 import com.networknt.schema.resource.SchemaMapper;
26 import com.networknt.schema.resource.SchemaMappers;
27 import com.networknt.schema.serialization.JsonMapperFactory;
28 import com.networknt.schema.serialization.YamlMapperFactory;
173 … throw new IllegalArgumentException("Meta Schema for default Meta Schema URI must be provided"); in JsonSchemaFactory()
[all …]
/aosp_15_r20/external/autotest/utils/frozen_chromite/third_party/googleapiclient/
H A Dschema.py15 """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 …]
/aosp_15_r20/external/python/google-api-python-client/googleapiclient/
Dschema.py15 """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 …]

12345678910>>...425