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>
diff --git a/schemas/satellite_controller.json b/schemas/satellite_controller.json
index 8f364bf..3a6c4af 100644
--- a/schemas/satellite_controller.json
+++ b/schemas/satellite_controller.json
@@ -3,33 +3,27 @@
"definitions": {
"SatelliteController": {
"title": "satellite controller configuration",
- "description": [
- "The configuration used to add remote BMCs to a system"
- ],
+ "description": "The configuration used to add remote BMCs to a system",
"type": "object",
"properties": {
"Hostname": {
- "description": ["Hostname or IP of satellite controller"],
+ "description": "Hostname or IP of satellite controller",
"type": "string"
},
"Port": {
- "description": [
- "Network port to connect to satellite controller"
- ],
+ "description": "Network port to connect to satellite controller",
"type": "number"
},
"AuthType": {
- "description": [
- "Type of authorization to use with satellite controller"
- ],
+ "description": "Type of authorization to use with satellite controller",
"enum": ["None"]
},
"Name": {
- "description": ["The name of the object"],
+ "description": "The name of the object",
"type": "string"
},
"Type": {
- "description": ["The type of satellite controller"],
+ "description": "The type of satellite controller",
"enum": ["SatelliteController"]
}
},