Using the "$schema" without any specific version has been deprecated[1] and will lead to warnings like: DeprecationWarning: The metaschema specified by $schema was not found. Using the latest draft to validate, but this will raise an error in the future Fix this by pointing $schema to "draft-07", which is the latest version fully supported the jsonschema python package, that is being used internally. [1] "The possibility to declare $schema without specific version (http://json-schema.org/schema#) was deprecated after Draft 4 and should no longer be used." https://json-schema.org/understanding-json-schema/reference/schema.html
90 lines
2.5 KiB
JSON
90 lines
2.5 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "https://osbuild.org/schemas/osbuild1.json",
|
|
|
|
"title": "OSBuild Manifest",
|
|
"description": "OSBuild manifest describing a pipeline and all parameters",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"pipeline": { "$ref": "#/definitions/pipeline" },
|
|
"sources": { "$ref": "#/definitions/sources" }
|
|
},
|
|
"required": [],
|
|
|
|
"definitions": {
|
|
"assembler": {
|
|
"title": "Pipeline Assembler",
|
|
"description": "Final stage of a pipeline that assembles the result",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"options": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"required": [ "name" ]
|
|
},
|
|
|
|
"build": {
|
|
"title": "Build Pipeline",
|
|
"description": "Description of the build pipeline required to run stages",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"pipeline": { "$ref": "#/definitions/pipeline" },
|
|
"runner": { "type": "string" }
|
|
},
|
|
"required": [ "pipeline", "runner" ]
|
|
},
|
|
|
|
"pipeline": {
|
|
"title": "Pipeline Description",
|
|
"description": "Full description of a pipeline to execute",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"assembler": { "$ref": "#/definitions/assembler" },
|
|
"build": { "$ref": "#/definitions/build" },
|
|
"stages": { "$ref": "#/definitions/stages" }
|
|
},
|
|
"required": []
|
|
},
|
|
|
|
"source": {
|
|
"title": "External Source",
|
|
"description": "External source to be passed to the pipeline",
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
|
|
"sources": {
|
|
"title": "Collection of External Sources",
|
|
"description": "Collection of external sources to be passed to the pipeline",
|
|
"type": "object",
|
|
"additionalProperties": { "$ref": "#/definitions/source" }
|
|
},
|
|
|
|
"stage": {
|
|
"title": "Pipeline Stage",
|
|
"description": "Single stage of a pipeline executing one step",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"name": { "type": "string" },
|
|
"options": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
}
|
|
},
|
|
"required": [ "name" ]
|
|
},
|
|
|
|
"stages": {
|
|
"type": "array",
|
|
"items": { "$ref": "#/definitions/stage" }
|
|
}
|
|
}
|
|
}
|