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"""
|
SCHEMA = r"""
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["origin", "references"],
|
"required": ["type", "origin", "references"],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"enum": ["org.osbuild.files"]
|
||||||
|
},
|
||||||
"origin": {
|
"origin": {
|
||||||
"description": "The origin of the input (must be 'org.osbuild.source')",
|
"description": "The origin of the input (must be 'org.osbuild.source')",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
||||||
|
|
@ -22,8 +22,11 @@ from osbuild.objectstore import StoreClient
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["origin", "references"],
|
"required": ["type", "origin", "references"],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"enum": ["org.osbuild.ostree"]
|
||||||
|
},
|
||||||
"origin": {
|
"origin": {
|
||||||
"description": "The origin of the input (must be 'org.osbuild.source')",
|
"description": "The origin of the input (must be 'org.osbuild.source')",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,11 @@ from osbuild.objectstore import StoreClient
|
||||||
|
|
||||||
SCHEMA = """
|
SCHEMA = """
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"required": ["origin", "references"],
|
"required": ["type", "origin", "references"],
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"enum": ["org.osbuild.tree"]
|
||||||
|
},
|
||||||
"origin": {
|
"origin": {
|
||||||
"description": "The origin of the input (must be 'org.osbuild.pipeline')",
|
"description": "The origin of the input (must be 'org.osbuild.pipeline')",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue