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 = """
|
||||
"definitions": {
|
||||
"options": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "OSTree reference to create for this commit"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": ["type", "origin", "references"],
|
||||
"properties": {
|
||||
|
|
@ -46,14 +58,7 @@ SCHEMA = """
|
|||
"minProperties": 1,
|
||||
"patternProperties": {
|
||||
".*": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"ref": {
|
||||
"type": "string",
|
||||
"description": "OSTree reference to create for this commit"
|
||||
}
|
||||
}
|
||||
"$ref": "#/definitions/options"
|
||||
}
|
||||
}
|
||||
}]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue