From b60975641a82969e45f323c44c983a373825274d Mon Sep 17 00:00:00 2001 From: Nisha Agarwal Date: Tue, 16 Apr 2019 11:50:54 -0700 Subject: [PATCH] Jsonschema 3.0.1: Binding the schema to draft-04 This fix binds the raid schema to draft-04 of the json schema. The draft-04 is supported on both jsonschema 2.6 and jsonschema 3.0.1. Draft-06 and draft-07 require the schema change which is incompatible with draft-04. Story: #2005464 task: 30540 Change-Id: Ic30a0f18982f4da939f0f23eef8a233afea0e41a --- ironic/drivers/raid_config_schema.json | 1 + .../notes/jsonschema_draft04-1cb5fc4a3852f9ae.yaml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 releasenotes/notes/jsonschema_draft04-1cb5fc4a3852f9ae.yaml 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.