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:
parent
a2c926654c
commit
e92b24229d
1 changed files with 6 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue