fuel-ccp/fuel_ccp/config/sources.py
Yuriy Taraday 3b24a8039c Replace runtime sources verification with jsonschema validation
Change-Id: I3d17336d26ed14970c6d9f96c10b65468da12f1f
2016-10-14 16:21:17 +03:00

22 lines
510 B
Python

SCHEMA = {
'sources': {
'type': 'object',
'additionalProperties': {
'additionalProperties': False,
'properties': {
'git_url': {'type': 'string'},
'git_ref': {'type': 'string'},
'source_dir': {'type': 'string'},
},
'oneOf': [
{'required': ['git_url', 'git_ref']},
{'required': ['source_dir']},
],
},
}
}
DEFAULTS = {
'sources': {},
}