History log of /openbmc/entity-manager/schemas/satellite_controller.json (Results 1 – 3 of 3)
Revision Date Author Comments
# 7d6080db 04-Sep-2024 Patrick Williams <patrick@stwcx.xyz>

json: adjust definitions alias

JSON Schema suggests[1] using "$defs" rather than "definitions" as
the location for reusable definitions in a schema. While, this
isn't strictly required, there is so

json: adjust definitions alias

JSON Schema suggests[1] using "$defs" rather than "definitions" as
the location for reusable definitions in a schema. While, this
isn't strictly required, there is some implication that using it
lends to better schema validation error reporting[2].

Adjust all the schema files to use "$defs" rather than "definitions".

[1]: https://json-schema.org/understanding-json-schema/structuring#defs
[2]: https://github.com/orgs/json-schema-org/discussions/151

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I4b23890950bd2ebb7a7de99fd911fb3c9e0a4dbd

show more ...


# bb8aa370 19-Mar-2024 Andrew Jeffery <andrew@codeconstruct.com.au>

schemas: Descriptions must be strings

```
$ python3 -c 'import json; import jsonschema; schema = json.load(open("schemas/global.json")); cls = jsonschema.validators.validator_for(schema); cls.check_

schemas: Descriptions must be strings

```
$ python3 -c 'import json; import jsonschema; schema = json.load(open("schemas/global.json")); cls = jsonschema.validators.validator_for(schema); cls.check_schema(schema)'
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/usr/lib/python3/dist-packages/jsonschema/validators.py", line 204, in check_schema
raise exceptions.SchemaError.create_from(error)
jsonschema.exceptions.SchemaError: ['The schema for an entity manager configuration file. An entity ', 'mananger configuration file can consist of a single object, or an ', 'array of objects. Objects must be of type EMConfig.'] is not of type 'string'

Failed validating 'type' in metaschema['properties']['description']:
{'type': 'string'}

On schema['description']:
['The schema for an entity manager configuration file. An entity ',
'mananger configuration file can consist of a single object, or an ',
'array of objects. Objects must be of type EMConfig.']
```

Change-Id: I2b8102e7d6047c8a7e624e182465065268fb8ad9
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>

show more ...


# 48edf9a9 21-Feb-2023 Andrew Geissler <geissonator@yahoo.com>

aggregation: add satellite controller schema

This schema will be utilized to add remote satellite controllers to a
users system.

bmcweb already has extensive support for utilizing this object. More

aggregation: add satellite controller schema

This schema will be utilized to add remote satellite controllers to a
users system.

bmcweb already has extensive support for utilizing this object. More
information can be found in the following:
https://gerrit.openbmc.org/c/openbmc/bmcweb/+/57925

Tested:
- Confirmed a system utilizing new schema worked as expected

Change-Id: Id6172d4f5d2243b95331c5d9076e809ef21de219
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...