| /external/tensorflow/tensorflow/lite/schema/ |
| D | upgrade_schema.py | 8 # http://www.apache.org/licenses/LICENSE-2.0 15 """Upgrade script to move from pre-release schema to new schema. 19 bazel run tensorflow/lite/schema/upgrade_schema -- in.json out.json 20 bazel run tensorflow/lite/schema/upgrade_schema -- in.bin out.bin 21 bazel run tensorflow/lite/schema/upgrade_schema -- in.bin out.json 22 bazel run tensorflow/lite/schema/upgrade_schema -- in.json out.bin 23 bazel run tensorflow/lite/schema/upgrade_schema -- in.tflite out.tflite 27 import json 38 description="Script to move TFLite models from pre-release schema to " 39 "new schema.") [all …]
|
| /external/libchrome/components/json_schema/ |
| D | json_schema_validator.h | 2 // Use of this source code is governed by a BSD-style license that can be 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: 29 // - requires 30 // - unique 31 // - disallow 32 // - union types (but replaced with 'choices') 33 // - number.maxDecimal 37 // - options [all …]
|
| /external/mesa3d/src/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/ |
| D | json_validate.py | 1 #!/usr/bin/python3 -i 3 # Copyright 2020-2023 The Khronos Group Inc. 5 # SPDX-License-Identifier: Apache-2.0 8 # ----------- 9 # This script validates a json pipeline file against the schema files. 14 import json 17 base_schema_filename = os.path.join("..", "json", "vk.json") 18 vkpcc_schema_filename = os.path.join("..", "json", "vkpcc.json") 23 parser.add_argument('json_file', help='The json file to validate') 32 # Exit with error if json or schema files do not exist [all …]
|
| /external/ot-br-posix/src/rest/ |
| D | openapi.yaml | 4 description: |- 5 …This describes the OpenThread Border Router REST API. The API is provided by the otbr-agent, if th… 9 - [OpenThread Border Router repository](github.com/openthread/ot-br-posix/) 11 name: BSD 3-Clause 12 url: https://github.com/openthread/ot-br-posix/blob/main/LICENSE 15 - url: http://localhost:8081 17 - name: node 19 - name: diagnostics 25 - diagnostics 31 application/json: [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. 31 * deserializing instances. It is so-called delegating creator, 36 public JsonSchema(ObjectNode schema) in JsonSchema() argument 38 this.schema = schema; in JsonSchema() [all …]
|
| D | JsonSerializableSchema.java | 11 * Annotation that can be used to define JSON Schema definition for 16 * annotations, to produce JSON schema definition. 35 * generating JSON Schema; empty String indicates that no id 41 * The schema type for this JsonSerializable instance. 44 * @return The schema type for this JsonSerializable instance. 49 * If the schema type is "object", JSON definition of properties of the object as 52 * @return The node representing the schema properties, or "##irrelevant" if irrelevant. 54 * @deprecated (since 2.1) -- support will be dropped in future, since JSON-as-String is 61 * If the schema type if "array", JSON definition of the schema for item types contained. 63 * @return The schema for the items in the array, or "##irrelevant" if irrelevant. [all …]
|
| D | SchemaAware.java | 10 * Marker interface for schema-aware serializers. 15 * Get the representation of the schema to which this serializer will conform. 19 * @return <a href="http://json-schema.org/">Json-schema</a> for this serializer. 25 * Get the representation of the schema to which this serializer will conform. 30 * @return <a href="http://json-schema.org/">Json-schema</a> for this serializer.
|
| /external/openscreen/cast/protocol/castv2/ |
| D | validation.cc | 2 // Use of this source code is governed by a BSD-style license that can be 13 #include "third_party/valijson/src/include/valijson/schema.hpp" 17 #include "util/json/json_serialization.h" 39 void LoadSchema(const char* schema_json, valijson::Schema* schema) { in LoadSchema() argument 40 Json::Value root = json::Parse(schema_json).value(); in LoadSchema() 43 parser.populateSchema(adapter, *schema); in LoadSchema() 46 std::vector<Error> Validate(const Json::Value& document, in Validate() 47 const valijson::Schema& schema) { in Validate() argument 51 if (validator.validate(schema, document_adapter, &results)) { in Validate() 58 std::vector<Error> Validate(const Json::Value& document, in Validate() [all …]
|
| D | validation_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 25 #include "json/value.h" 27 #include "util/json/json_serialization.h" 39 // Schema format string, that allows for specifying definitions, 42 "$schema": "http://json-schema.org/draft-07/schema#", 54 // Fields used for an appId containing schema 73 bool TestValidate(absl::string_view document, absl::string_view schema) { in TestValidate() argument 74 ErrorOr<Json::Value> document_root = json::Parse(document); in TestValidate() 76 ErrorOr<Json::Value> schema_root = json::Parse(schema); in TestValidate() 139 ErrorOr<Json::Value> message_root = json::Parse(GetParam()); in TEST_P() [all …]
|
| /external/flatbuffers/scripts/ |
| D | generate_code.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 28 "--flatc", 31 parser.add_argument("--cpp-0x", action="store_true", help="use --cpp-std c++ox") 33 "--skip-monster-extra", 38 "--skip-gen-reflection", 72 def flatc(options, schema, prefix=None, include=None, data=None, cwd=tests_path): argument 75 cmd += ["-o"] + [prefix] 77 cmd += ["-I"] + [include] 78 cmd += [schema] if isinstance(schema, str) else schema 84 # Generate the code for flatbuffers reflection schema [all …]
|
| /external/flatbuffers/docs/source/ |
| D | Compiler.md | 1 Using the schema compiler {#flatbuffers_guide_using_schema_compiler} 6 flatc [ GENERATOR OPTIONS ] [ -o PATH ] [ -I PATH ] FILES... 7 [ -- FILES...] 11 the most recent schema specified. 13 `--` indicates that the following files are binary files in 14 FlatBuffer format conforming to the schema indicated before it. 19 For any schema input files, one or more generators can be specified: 21 - `--cpp`, `-c` : Generate a C++ header for all definitions in this file (as 24 - `--java`, `-j` : Generate Java code. 26 - `--kotlin`, `-k` : Generate Kotlin code. [all …]
|
| D | Schemas.md | 1 Writing a schema {#flatbuffers_guide_writing_schema} 4 The syntax of the schema language (aka IDL, [Interface Definition Language][]) 44 optionally a default value. If the default value is not specified in the schema, 53 - You can add new fields in the schema ONLY at the end of a table 58 schema, you can manually assign ids (much like Protocol Buffers), 61 - You cannot delete fields you don't use anymore from the schema, 69 - You may change field names and table names, if you're ok with your 72 See "Schema evolution examples" below for more on this 82 tables and are even faster to access (they are always stored in-line in their 87 Built-in scalar types are [all …]
|
| D | CppUsage.md | 14 This page assumes you have written a FlatBuffers schema and compiled it 15 with the Schema Compiler. If you have not, please see 16 [Using the schema compiler](@ref flatbuffers_guide_using_schema_compiler) 17 and [Writing a schema](@ref flatbuffers_guide_writing_schema). 19 Assuming you wrote a schema, say `mygame.fbs` (though the extension doesn't 21 compiler (e.g. `flatc -c mygame.fbs`), you can now start using this in 46 *Note: See [Tutorial](@ref flatbuffers_guide_tutorial) for a more in-depth 52 schema with the `--cpp` option to `flatc`. Then you can include both FlatBuffers 84 std::cout << "hp : " << monster->hp() << std::endl; // '80' 85 std::cout << "mana : " << monster->mana() << std::endl; // default value of '150' [all …]
|
| /external/python/google-api-python-client/googleapiclient/ |
| D | schema.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """Schema processing for discovery based APIs 17 Schemas holds an APIs discovery schemas. It can return those schema as 18 deserialized JSON objects, or pretty print them as prototype objects that 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. [all …]
|
| /external/autotest/utils/frozen_chromite/third_party/googleapiclient/ |
| D | schema.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 15 """Schema processing for discovery based APIs 17 Schemas holds an APIs discovery schemas. It can return those schema as 18 deserialized JSON objects, or pretty print them as prototype objects that 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. [all …]
|
| /external/flatbuffers/samples/ |
| D | sample_text.lobster | 7 // http://www.apache.org/licenses/LICENSE-2.0 18 // Example how to interop with JSON. 20 // Test loading some JSON, converting it to a binary FlatBuffer and back again. 22 // First read the schema and JSON data. 23 let schema = read_file("monster.fbs", true) 24 let json = read_file("monsterdata.json", true) 25 assert schema and json 27 // Parse JSON to binary: 28 let fb, err1 = flatbuffers_json_to_binary(schema, json, []) 35 // Convert binary back to JSON: [all …]
|
| /external/aws-sdk-java-v2/test/test-utils/src/main/java/software/amazon/awssdk/core/auth/policy/internal/ |
| D | JsonPolicyReader.java | 32 * Generate an AWS policy object by parsing the given JSON string. 43 * Converts the specified JSON string to an AWS policy object. 47 * /DeveloperGuide/java-dg-access-control.html 50 * the specified JSON string representation of this AWS access 56 * If the specified JSON string is null or invalid and cannot be 62 throw new IllegalArgumentException("JSON string cannot be null"); in createPolicyFromJsonString() 87 String message = "Unable to generate policy object fron JSON string " in createPolicyFromJsonString() 156 * Generates a list of actions from the Action Json Node. 159 * the action Json node to be parsed. 176 * Generates a list of resources from the Resource Json Node. [all …]
|
| /external/libchrome/components/policy/core/common/ |
| D | schema.h | 2 // Use of this source code is governed by a BSD-style license that can be 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 38 // Unknown properties in the top-level dictionary will be ignored. 44 // Mismatched values will be ignored at the top-level value. 51 class Schema; variable 53 typedef std::vector<Schema> SchemaList; 60 // Schema validation is based on a subset of the JSON Schema standard. [all …]
|
| /external/google-cloud-java/java-private-catalog/proto-google-cloud-private-catalog-v1beta1/src/main/java/com/google/cloud/privatecatalog/v1beta1/ |
| D | ProductOrBuilder.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 31 * `products/[a-z][-a-z0-9]*[a-z0-9]'. 45 * `products/[a-z][-a-z0-9]*[a-z0-9]'. 90 * Required. Output only. The display metadata to describe the product. The JSON schema of the 92 * When the type is `google.deploymentmanager.Template`, the schema is as 95 * "$schema": http://json-schema.org/draft-04/schema# 126 * "^(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]" 136 * - name 137 * - description 140 * When the asset type is `google.cloudprivatecatalog.ListingOnly`, the schema [all …]
|
| /external/flatbuffers/CMake/ |
| D | BuildFlatBuffers.cmake | 7 # http://www.apache.org/licenses/LICENSE-2.0 18 # flatbuffers_schemas: A list of flatbuffer schema files to process. 20 # schema_include_dirs: A list of schema file include directories, which will be 21 # passed to flatc via the -I parameter. 38 # binary_schemas_dir: If you specify an optional binary schema directory, binary 43 # all schema include directories) copied into a directory (for example, if you 44 # need them within your project to build JSON files), you can specify that 66 set(FLATC_SCHEMA_ARGS --gen-mutable) 81 set(include_params -I ${include_dir} ${include_params}) 91 foreach(schema ${flatbuffers_schemas}) [all …]
|
| /external/libwebsockets/minimal-examples/api-tests/api-test-lws_struct-json/ |
| D | main.c | 2 * lws-api-test-lws_struct-json 4 * Written in 2010-2020 by Andy Green <andy@warmcat.com> 10 * linked-lists in a standardized way that's very modest on memory but 13 * The API test shows how to serialize and deserialize a struct with a linked- 14 * list of child structs in JSON using lws_struct APIs. 68 * We read the JSON config using lws_struct... instrument the related structures 107 LSM_SCHEMA (sai_jig_t, NULL, lsm_sai_jig, "sai-jig"), 112 "\"schema\": \"sai-jig\"," 116 "\"name\": \"linkit-7697-1\"," 161 * in this example, the JSON is for one "builder" object, which may specify [all …]
|
| /external/mbedtls/scripts/ |
| D | generate_driver_wrappers.py | 10 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later 14 import json 29 def __init__(self, message="Json Validation Failed"): 40 def render(template_path: str, driver_jsoncontext: list) -> str: 42 Render template from the input file and driver JSON. 54 driver_jsoncontext: list) -> None: 65 encoding='UTF-8') as out_file: 69 def validate_json(driverjson_data: Driver, driverschema_list: dict) -> None: 71 Validate the Driver JSON against an appropriate schema 72 the schema passed could be that matching an opaque/ transparent driver. [all …]
|
| /external/google-cloud-java/java-discoveryengine/proto-google-cloud-discoveryengine-v1beta/src/main/java/com/google/cloud/discoveryengine/v1beta/ |
| D | DocumentOrBuilder.java | 8 * https://www.apache.org/licenses/LICENSE-2.0 30 * The structured JSON data for the document. It should conform to the 32 * [Schema.schema][google.cloud.discoveryengine.v1beta.Schema.schema] or an 45 * The structured JSON data for the document. It should conform to the 47 * [Schema.schema][google.cloud.discoveryengine.v1beta.Schema.schema] or an 60 * The structured JSON data for the document. It should conform to the 62 * [Schema.schema][google.cloud.discoveryengine.v1beta.Schema.schema] or an 74 * The JSON string representation of the document. It should conform to the 76 * [Schema.schema][google.cloud.discoveryengine.v1beta.Schema.schema] or an 89 * The JSON string representation of the document. It should conform to the [all …]
|
| /external/google-cloud-java/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/ |
| D | physical_schema.proto | 7 // http://www.apache.org/licenses/LICENSE-2.0 28 // Native schema used by a resource represented as an entry. Used by query 31 // Schema in Avro JSON format. 33 // JSON source of the Avro schema. 37 // Schema in Thrift format. 39 // Thrift IDL source of the schema. 43 // Schema in protocol buffer format. 45 // Protocol buffer source of the schema. 49 // Marks a Parquet-encoded data source. 52 // Marks an ORC-encoded data source. [all …]
|
| /external/googleapis/google/cloud/datacatalog/v1/ |
| D | physical_schema.proto | 7 // http://www.apache.org/licenses/LICENSE-2.0 28 // Native schema used by a resource represented as an entry. Used by query 31 // Schema in Avro JSON format. 33 // JSON source of the Avro schema. 37 // Schema in Thrift format. 39 // Thrift IDL source of the schema. 43 // Schema in protocol buffer format. 45 // Protocol buffer source of the schema. 49 // Marks a Parquet-encoded data source. 52 // Marks an ORC-encoded data source. [all …]
|