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:
Christian Kellner 2022-04-12 22:51:24 +02:00 committed by Achilleas Koutsou
parent c25857020d
commit 0fe7196c7a

View file

@ -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"
}
}
}]