inputs/files: extract source options schema

This is mostly to prepare the support for pipeline options will be
different for pipeline origins than source origins.
This commit is contained in:
Christian Kellner 2021-06-01 12:16:26 +00:00 committed by Tom Gundersen
parent e92b24229d
commit 659c139ed1

View file

@ -39,17 +39,22 @@ SCHEMA = r"""
"type": "string"
}
},
"object-ref": {
"source-options": {
"type": "object",
"additionalProperties": false,
"properties": {
"metadata": {
"$ref": "#/definitions/metadata"
}
}
},
"source-object-ref": {
"type": "object",
"additionalProperties": false,
"minProperties": 1,
"patternProperties": {
".*": {
"type": "object",
"additionalProperties": false,
"properties": {
"metadata": {"$ref": "#/definitions/metadata"}
}
"$ref": "#/definitions/source-options"
}
}
},
@ -72,7 +77,7 @@ SCHEMA = r"""
"description": "Checksums of files to use as files input",
"oneOf": [
{"$ref": "#/definitions/plain-ref"},
{"$ref": "#/definitions/object-ref"}
{"$ref": "#/definitions/source-object-ref"}
]
}
}