Home
last modified time | relevance | path

Searched refs:schema (Results 1 – 25 of 201) sorted by relevance

123456789

/openbmc/qemu/scripts/qapi/
H A Dbackend.py10 from .schema import QAPISchema
20 schema: QAPISchema,
43 schema: QAPISchema,
60 gen_types(schema, output_dir, prefix, builtins)
61 gen_features(schema, output_dir, prefix)
62 gen_visit(schema, output_dir, prefix, builtins)
63 gen_commands(schema, output_dir, prefix, gen_tracing)
64 gen_events(schema, output_dir, prefix)
65 gen_introspect(schema, output_dir, prefix, unmask)
H A Dfeatures.py14 from .schema import QAPISchema, QAPISchemaFeature
27 def visit_begin(self, schema: QAPISchema) -> None:
28 self.features = schema.features()
43 def gen_features(schema: QAPISchema,
47 schema.visit(vis)
H A Dschema.py92 def check(self, schema: QAPISchema) -> None:
100 self, schema: QAPISchema, info: Optional[QAPISourceInfo]
104 self._module = schema.module_by_fname(fname)
107 def set_module(self, schema: QAPISchema) -> None:
108 self._set_module(schema, self.info)
141 def check(self, schema: QAPISchema) -> None:
143 super().check(schema)
168 def visit_begin(self, schema: QAPISchema) -> None:
368 def check(self, schema: QAPISchema) -> None:
369 super().check(schema)
[all …]
H A Dmain.py18 from .schema import QAPISchema
98 schema = QAPISchema(args.schema)
100 backend.generate(schema,
/openbmc/qemu/tests/qtest/
H A Dqmp-cmd-test.c132 static void qmp_schema_init(QmpSchema *schema) in qmp_schema_init() argument
144 visit_type_SchemaInfoList(qiv, NULL, &schema->list, &error_abort); in qmp_schema_init()
150 schema->hash = g_hash_table_new(g_str_hash, g_str_equal); in qmp_schema_init()
153 for (tail = schema->list; tail; tail = tail->next) { in qmp_schema_init()
154 g_hash_table_insert(schema->hash, tail->value->name, tail->value); in qmp_schema_init()
158 static SchemaInfo *qmp_schema_lookup(QmpSchema *schema, const char *name) in qmp_schema_lookup() argument
160 return g_hash_table_lookup(schema->hash, name); in qmp_schema_lookup()
163 static void qmp_schema_cleanup(QmpSchema *schema) in qmp_schema_cleanup() argument
165 qapi_free_SchemaInfoList(schema->list); in qmp_schema_cleanup()
166 g_hash_table_destroy(schema->hash); in qmp_schema_cleanup()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Dredfish_v1.hpp129 for (const std::string& schema : schemaNames) in jsonSchemaIndexGet() local
133 boost::urls::format("/redfish/v1/JsonSchemas/{}", schema); in jsonSchemaIndexGet()
142 const std::string& schema) in jsonSchemaGet() argument
154 messages::resourceNotFound(asyncResp->res, "JsonSchemaFile", schema); in jsonSchemaGet()
167 if (split[0] != schema) in jsonSchemaGet()
174 boost::urls::format("/redfish/v1/JsonSchemas/{}", schema); in jsonSchemaGet()
176 json["Name"] = schema + " Schema File"; in jsonSchemaGet()
177 json["Description"] = schema + " Schema File Location"; in jsonSchemaGet()
178 json["Id"] = schema; in jsonSchemaGet()
179 std::string schemaName = std::format("#{}.{}", schema, schema); in jsonSchemaGet()
[all …]
/openbmc/openbmc/meta-phosphor/recipes-phosphor/interfaces/
H A Dredfish-schema-pack_2024.4.bb15 cat > ${WORKDIR}/redfish-schema-pack.pc <<EOF
17 schema_dir = ${DOLLAR}{prefix}/share/redfish-schema-pack
19 Name: redfish-schema-pack
26 install -d ${D}${datadir}/redfish-schema-pack/
27 for f in csdl:xml openapi:yaml json-schema:json registries:json; do
30 install -d ${D}${datadir}/redfish-schema-pack/$PATHSEG
32 ${D}${datadir}/redfish-schema-pack/$PATHSEG
36 install -m 0644 ${WORKDIR}/redfish-schema-pack.pc ${D}${libdir}/pkgconfig/
/openbmc/openbmc/poky/scripts/
H A Doe-trim-schemas37 for schema in child(xml.getroot(), "schemalist").getchildren():
38 e = child(schema, "short")
40 schema.remove(e)
42 e = child(schema, "long")
44 schema.remove(e)
46 for locale in children(schema, "locale"):
53 schema.remove(locale)
/openbmc/openbmc/poky/meta/recipes-devtools/python/python3-jsonschema/
H A Dd71f96a6523875c9694fcdf468c9f458323d07f2.patch27 @@ -1334,7 +1334,7 @@ def validate(instance, schema, cls=None, *args, **kwargs): # noqa: D417
30 schema,
35 Retrieve the validator class appropriate for validating the given schema.
39 if schema is True or schema is False or "$schema" not in schema:
42 if schema["$schema"] not in _META_SCHEMAS and default is _UNSET:
/openbmc/qemu/monitor/
H A Dqmp-cmds-control.c182 static SchemaInfoList *zap_deprecated(SchemaInfoList *schema) in zap_deprecated() argument
188 schema = split_off_generic_list(schema, is_entity_deprecated, &to_zap); in zap_deprecated()
191 for (tail = schema; tail; tail = tail->next) { in zap_deprecated()
201 return schema; in zap_deprecated()
208 SchemaInfoList *schema = NULL; in qmp_query_qmp_schema() local
211 visit_type_SchemaInfoList(v, NULL, &schema, &error_abort); in qmp_query_qmp_schema()
212 g_assert(schema); in qmp_query_qmp_schema()
218 return zap_deprecated(schema); in qmp_query_qmp_schema()
220 return schema; in qmp_query_qmp_schema()
/openbmc/bmcweb/redfish-core/schema/oem/openbmc/
H A Dmeson.build9 foreach option_key, schema : schemas
12 'csdl/@0@_v1.xml'.format(schema),
13 install_dir: 'share/www/redfish/v1/schema',
18 'json-schema/@0@.v1_0_0.json'.format(schema),
/openbmc/phosphor-logging/extensions/openpower-pels/registry/tools/
H A Dvalidate_registry.py113 def validate_schema(registry, schema): argument
125 if schema:
128 with open(schema) as schema_handle:
177 schema = args.schema_file variable
179 schema = None variable
181 validate_schema(args.registry_file, schema)
/openbmc/openpower-hw-diags/analyzer/ras-data/
H A Dmeson.build14 # Install the RAS data schema
16 ras_data_schema = files('schema/ras-data-schema-v02.json')
18 install_data(ras_data_schema, install_dir: join_paths(package_dir, 'schema'))
/openbmc/qemu/storage-daemon/qapi/
H A Dqapi-schema.json4 # Note that modules are shared with the QEMU main schema under the assumption
5 # that the storage daemon schema is a subset of the main schema. For the shared
7 # from the main schema.
9 # If you wish to extend the storage daemon schema to contain things that are
10 # not in the main schema, be aware that array types of types defined in shared
12 # in the main schema. Therefore, if you use such arrays, you may need to define
13 # the array type in the main schema, even if it is unused outside of the
47 # stable order, it's best to include each sub-schema just once, or
/openbmc/libcper/tests/
H A Dtest-utils.c217 json_object *schema = json_object_from_file(schema_path); in schema_validate_from_file() local
219 if (schema == NULL) { in schema_validate_from_file()
225 if (iterate_make_required_props(schema, all_valid_bits) < 0) { in schema_validate_from_file()
227 json_object_put(schema); in schema_validate_from_file()
232 int err = jdac_validate(to_test, schema); in schema_validate_from_file()
235 json_object_put(schema); in schema_validate_from_file()
248 json_object_put(schema); in schema_validate_from_file()
/openbmc/bmcweb/scripts/csdl-to-json-converter/
H A DREADME.md1 # Generating Json schema for OEM schemas
10 ….py --input ~/bmcweb/redfish-core/schema/oem/openbmc/csdl --output ~/bmcweb/redfish-core/schema/oe…
/openbmc/entity-manager/src/entity_manager/
H A Dconfiguration.cpp44 nlohmann::json schema; in loadConfigurations() local
56 schema = nlohmann::json::parse(schemaStream, nullptr, false, true); in loadConfigurations()
57 if (schema.is_discarded()) in loadConfigurations()
81 if (ENABLE_RUNTIME_VALIDATE_JSON && !validateJson(schema, data)) in loadConfigurations()
131 valijson::Schema schema; in validateJson() local
134 parser.populateSchema(schemaAdapter, schema); in validateJson()
137 return validator.validate(schema, targetAdapter, nullptr); in validateJson()
/openbmc/entity-manager/schemas/
H A DREADME.md1 # Entity manager configuration file schema
4 a [JSON schema][1]. This document provides an overview of the general structure
11 most schema describes a single object or an array of objects.
14 entity manager configuration file and schema file names must be
30 supported types, consult the schema (global.json).
49 Each exposes element has its own schema which is outlined by the subschemas in
50 the schemas directory. Each schema must require a type and name (not to be
61 New subschema for the exposes property must be added to the schema directory,
73 [1]: https://json-schema.org/
/openbmc/openbmc/meta-openembedded/meta-networking/recipes-support/cim-schema/
H A Dcim-schema-final_2.40.0.bb1 require cim-schema.inc
5 RCONFLICTS:${PN} = "cim-schema-exper"
16 install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV}
17 install -m 644 ${UNPACKDIR}/LICENSE ${D}${datadir}/doc/cim-schema-${PV}
H A Dcim-schema-exper_2.50.0.bb1 require cim-schema.inc
5 RCONFLICTS:${PN} = "cim-schema-final"
16 install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV}
17 install -m 644 ${UNPACKDIR}/LICENSE ${D}${datadir}/doc/cim-schema-${PV}
H A Dcim-schema-docs_2.40.0.bb1 require cim-schema.inc
15 install -d -m 0755 ${D}${datadir}/doc/cim-schema-${PV}-docs
16 … cp -R --no-dereference --preserve=mode,links -v ${S}/* ${D}${datadir}/doc/cim-schema-${PV}-docs
/openbmc/qemu/gdbstub/
H A Dgdbstub.c890 static int cmd_parse_params(const char *data, const char *schema, in cmd_parse_params() argument
895 g_assert(schema); in cmd_parse_params()
898 curr_schema = schema; in cmd_parse_params()
975 if (cmd->schema) { in process_string_cmd()
977 cmd->schema, params)) { in process_string_cmd()
1469 .schema = "s0"
1476 .schema = "l0"
1492 .schema = "s,L,L0"
1498 .schema = "l0"
1504 .schema = "l,L,L0"
[all …]
/openbmc/openpower-hw-diags/util/
H A Ddata_file.cpp33 valijson::Schema schema; in validateJson() local
36 parser.populateSchema(schemaAdapter, schema); in validateJson()
41 return validator.validate(schema, targetAdapter, nullptr); in validateJson()
/openbmc/phosphor-power/phosphor-regulators/
H A DREADME.md15 - [schema](schema/) contains schema defining the JSON configuration file format
/openbmc/qemu/tests/qapi-schema/
H A Dmissing-schema.err1 can't read schema file 'missing-schema.json': No such file or directory

123456789