Home
last modified time | relevance | path

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

123456789

/openbmc/linux/Documentation/devicetree/bindings/
H A Dwriting-schema.rst3 Writing Devicetree Bindings in json-schema
6 Devicetree bindings are written using json-schema vocabulary. Schema files are
11 Also see :ref:`example-schema`.
16 Each schema doc is a structured json-schema which is defined by a set of
18 top-level json-schema properties used are:
21 A json-schema unique identifier string. The string must be a valid
22 URI typically containing the binding's filename and path. For DT schema, it must
24 references to other files specified in schema "$ref" properties. A $ref value
27 components of the current schema file's '$id' value. A URL is used even for
30 $schema
[all …]
H A DMakefile4 DT_MK_SCHEMA ?= dt-mk-schema
67 $(obj)/processed-schema.json: $(DT_DOCS) $(src)/.yamllint check_dtschema_version FORCE
70 always-y += processed-schema.json
79 dt_compatible_check: $(obj)/processed-schema.json
/openbmc/libcper/
H A Djson-schema.c22 int validate_field(const char *name, json_object *schema, json_object *object,
24 int validate_integer(const char *field_name, json_object *schema,
26 int validate_string(const char *field_name, json_object *schema,
28 int validate_object(const char *field_name, json_object *schema,
30 int validate_array(const char *field_name, json_object *schema,
68 int validate_schema(json_object *schema, char *schema_directory, in validate_schema() argument
72 json_object *schema_ver = json_object_object_get(schema, "$schema"); in validate_schema()
101 int result = validate_field("parent", schema, object, error_message); in validate_schema()
125 int validate_field(const char *field_name, json_object *schema, in validate_field() argument
133 json_object *ref_field = json_object_object_get(schema, "$ref"); in validate_field()
[all …]
/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.hpp133 const std::string& schema) in jsonSchemaGet() argument
145 messages::resourceNotFound(asyncResp->res, "JsonSchemaFile", schema); in jsonSchemaGet()
158 if (split[0] != schema) in jsonSchemaGet()
165 boost::urls::format("/redfish/v1/JsonSchemas/{}", schema); in jsonSchemaGet()
167 json["Name"] = schema + " Schema File"; in jsonSchemaGet()
168 json["Description"] = schema + " Schema File Location"; in jsonSchemaGet()
169 json["Id"] = schema; in jsonSchemaGet()
170 std::string schemaName = std::format("#{}.{}", schema, schema); in jsonSchemaGet()
183 "/redfish/v1/JsonSchemas/{}/{}", schema, filename); in jsonSchemaGet()
191 messages::resourceNotFound(asyncResp->res, "JsonSchemaFile", schema); in jsonSchemaGet()
[all …]
/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/scripts/qapi/
H A Dmain.py19 from .schema import QAPISchema
50 schema = QAPISchema(schema_file)
51 gen_types(schema, output_dir, prefix, builtins)
52 gen_visit(schema, output_dir, prefix, builtins)
53 gen_commands(schema, output_dir, prefix, gen_tracing)
54 gen_events(schema, output_dir, prefix)
55 gen_introspect(schema, output_dir, prefix, unmask)
94 generate(args.schema,
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 …]
/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/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
21 # stable order, it's best to include each sub-schema just once, or
/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/gdbstub/
H A Dgdbstub.c877 static int cmd_parse_params(const char *data, const char *schema, in cmd_parse_params() argument
882 g_assert(schema); in cmd_parse_params()
885 curr_schema = schema; in cmd_parse_params()
962 if (cmd->schema) { in process_string_cmd()
964 cmd->schema, params)) { in process_string_cmd()
1456 .schema = "s0"
1463 .schema = "l0"
1479 .schema = "s,L,L0"
1485 .schema = "l0"
1491 .schema = "l,L,L0"
[all …]
/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-phosphor/recipes-phosphor/interfaces/
H A Dredfish-schema-pack_2024.4.bb14 install -d ${D}${datadir}/redfish-schema-pack/
15 for f in csdl:xml openapi:yaml json-schema:json registries:json; do
18 install -d ${D}${datadir}/redfish-schema-pack/$PATHSEG
20 ${D}${datadir}/redfish-schema-pack/$PATHSEG
/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/scripts/
H A Dvalidate_configs.py73 schema_file = args.schema
88 schema = {}
91 schema = json.load(fd)
138 spec.check_schema(schema)
142 resolver = jsonschema.RefResolver(base_uri, schema)
143 validator = spec(schema, resolver=resolver)
/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/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/linux/arch/x86/kernel/cpu/resctrl/
H A Dctrlmondata.c464 static void show_doms(struct seq_file *s, struct resctrl_schema *schema, int closid) in show_doms() argument
466 struct rdt_resource *r = schema->res; in show_doms()
471 seq_printf(s, "%*s:", max_name_width, schema->name); in show_doms()
480 schema->conf_type); in show_doms()
492 struct resctrl_schema *schema; in rdtgroup_schemata_show() local
500 list_for_each_entry(schema, &resctrl_schema_all, list) { in rdtgroup_schemata_show()
501 seq_printf(s, "%s:uninitialized\n", schema->name); in rdtgroup_schemata_show()
516 list_for_each_entry(schema, &resctrl_schema_all, list) { in rdtgroup_schemata_show()
517 if (closid < schema->num_closid) in rdtgroup_schemata_show()
518 show_doms(s, schema, closid); in rdtgroup_schemata_show()
/openbmc/openbmc/poky/meta/recipes-gnome/gnome/gconf/
H A Dpython3.patch3 Convert gsettings-schema-convert to use python3.
10 --- a/gsettings/gsettings-schema-convert
11 +++ b/gsettings/gsettings-schema-convert
33 …GSettingsSchemaConvertException('\'%s\' does not look like a valid gconf schema file: %s' % (argfi…

123456789