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
This commit is contained in:
Nisha Agarwal 2019-04-16 11:50:54 -07:00
parent 3e32ac271a
commit b60975641a
2 changed files with 10 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{ {
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "raid configuration json schema", "title": "raid configuration json schema",
"type": "object", "type": "object",
"properties": { "properties": {

View File

@ -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.