sources/ostree: support format version 2
In format version 2, the source specific keys for the sources, here "urls", is replaced by a generic `items` key, common to all sources. Express that in the schema.
This commit is contained in:
parent
a065df5654
commit
1d5d1fd44a
1 changed files with 12 additions and 3 deletions
|
|
@ -16,8 +16,8 @@ import uuid
|
|||
|
||||
SCHEMA = """
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"commits": {
|
||||
"definitions": {
|
||||
"item": {
|
||||
"description": "The commits to fetch indexed their checksum",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
|
@ -49,7 +49,16 @@ SCHEMA = """
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"properties": {
|
||||
"items": {"$ref": "#/definitions/item"},
|
||||
"commits": {"$ref": "#/definitions/item"}
|
||||
},
|
||||
"oneOf": [{
|
||||
"required": ["items"]
|
||||
}, {
|
||||
"required": ["commits"]
|
||||
}]
|
||||
"""
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue