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:
parent
47d976d362
commit
89b1fbfd8f
|
@ -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'
|
||||
|
|
|
@ -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'}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue