diff --git a/ironic/drivers/raid_config_schema.json b/ironic/drivers/raid_config_schema.json index 916cc8047e..6a36b51b7d 100644 --- a/ironic/drivers/raid_config_schema.json +++ b/ironic/drivers/raid_config_schema.json @@ -1,4 +1,5 @@ { + "$schema": "http://json-schema.org/draft-04/schema#", "title": "raid configuration json schema", "type": "object", "properties": { diff --git a/releasenotes/notes/jsonschema_draft04-1cb5fc4a3852f9ae.yaml b/releasenotes/notes/jsonschema_draft04-1cb5fc4a3852f9ae.yaml new file mode 100644 index 0000000000..115c91e61f --- /dev/null +++ b/releasenotes/notes/jsonschema_draft04-1cb5fc4a3852f9ae.yaml @@ -0,0 +1,9 @@ +--- +fixes: + - This fix binds the jsonschema to use draft-04 for raid + schema. The jsonschema 3.0.1 supports draft-03, draft-04, + draft-06 and draft-07 and by default the validate function + uses latest draft validator. Draft-04 is the latest draft + in the jsonschema 2.6. Hence binding the schema to draft-04 + validator makes it compliant for both jsonschema 2.6 and + jsonschema 3.0.1.