inputs/ostree: extract per-ref options schema
Extract the schema for the per-reference options, which in this case confusingly is the single property "ref".
This commit is contained in:
parent
c25857020d
commit
0fe7196c7a
1 changed files with 13 additions and 8 deletions
|
|
@ -21,6 +21,18 @@ from osbuild import inputs
|
||||||
|
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
|
"definitions": {
|
||||||
|
"options": {
|
||||||
|
"type": "object",
|
||||||
|
"additionalProperties": false,
|
||||||
|
"properties": {
|
||||||
|
"ref": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "OSTree reference to create for this commit"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["type", "origin", "references"],
|
"required": ["type", "origin", "references"],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
|
@ -46,14 +58,7 @@ SCHEMA = """
|
||||||
"minProperties": 1,
|
"minProperties": 1,
|
||||||
"patternProperties": {
|
"patternProperties": {
|
||||||
".*": {
|
".*": {
|
||||||
"type": "object",
|
"$ref": "#/definitions/options"
|
||||||
"additionalProperties": false,
|
|
||||||
"properties": {
|
|
||||||
"ref": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "OSTree reference to create for this commit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue