inputs/files: extract origin definition

This is mostly to prepare the support for pipeline origins where
this node will get reused in more than one place.
This commit is contained in:
Christian Kellner 2021-05-31 17:57:50 +00:00 committed by Tom Gundersen
parent a2c926654c
commit e92b24229d

View file

@ -52,6 +52,11 @@ SCHEMA = r"""
}
}
}
},
"source-origin": {
"type": "string",
"description": "When the origin of the input is a source",
"enum": ["org.osbuild.source"]
}
},
"required": ["type", "origin", "references"],
@ -61,8 +66,7 @@ SCHEMA = r"""
},
"origin": {
"description": "The origin of the input (must be 'org.osbuild.source')",
"type": "string",
"enum": ["org.osbuild.source"]
"$ref": "#/definitions/source-origin"
},
"references": {
"description": "Checksums of files to use as files input",