inputs: add "type" property to schema

This was missed when `type` was added to the Inputs class.
This commit is contained in:
Christian Kellner 2021-02-10 17:58:17 +00:00
parent 429f833434
commit c9462bf48c
3 changed files with 12 additions and 3 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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",