Support bind option in json schema

Currently validation process fails when 'bind' attribute exists in
components.yaml file. Validation of json schema should support it.

Partial-Bug: #1523981
Change-Id: Ifbdb552e7e17df6d6b94e2167de359a4eb3feb91
This commit is contained in:
Andriy Popovych 2015-12-23 12:53:41 +02:00
parent 47d976d362
commit 89b1fbfd8f
2 changed files with 3 additions and 1 deletions

View File

@ -233,6 +233,7 @@ class TestValidatorV4(TestValidatorV3):
{
'name': 'additional_service:ironic-new',
'label': 'Ironic New',
'bind': [('some_key', 'some_val')],
'incompatible': [{
'name': 'additional_service:*',
'message': 'Alert message'

View File

@ -93,7 +93,8 @@ class SchemaV4(SchemaV3):
'description': {'type': 'string'},
'compatible': self.components_items,
'requires': self.components_items,
'incompatible': self.components_items
'incompatible': self.components_items,
'bind': {'type': 'array'}
}
}
}