inputs: add "type" property to schema
This was missed when `type` was added to the Inputs class.
This commit is contained in:
parent
429f833434
commit
c9462bf48c
3 changed files with 12 additions and 3 deletions
|
|
@ -24,8 +24,11 @@ from osbuild.objectstore import StoreClient
|
|||
|
||||
SCHEMA = r"""
|
||||
"additionalProperties": false,
|
||||
"required": ["origin", "references"],
|
||||
"required": ["type", "origin", "references"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": ["org.osbuild.files"]
|
||||
},
|
||||
"origin": {
|
||||
"description": "The origin of the input (must be 'org.osbuild.source')",
|
||||
"type": "string",
|
||||
|
|
|
|||
|
|
@ -22,8 +22,11 @@ from osbuild.objectstore import StoreClient
|
|||
|
||||
SCHEMA = """
|
||||
"additionalProperties": false,
|
||||
"required": ["origin", "references"],
|
||||
"required": ["type", "origin", "references"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": ["org.osbuild.ostree"]
|
||||
},
|
||||
"origin": {
|
||||
"description": "The origin of the input (must be 'org.osbuild.source')",
|
||||
"type": "string",
|
||||
|
|
|
|||
|
|
@ -17,8 +17,11 @@ from osbuild.objectstore import StoreClient
|
|||
|
||||
SCHEMA = """
|
||||
"additionalProperties": false,
|
||||
"required": ["origin", "references"],
|
||||
"required": ["type", "origin", "references"],
|
||||
"properties": {
|
||||
"type": {
|
||||
"enum": ["org.osbuild.tree"]
|
||||
},
|
||||
"origin": {
|
||||
"description": "The origin of the input (must be 'org.osbuild.pipeline')",
|
||||
"type": "string",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue