schema: metadata at the top level

Allows a new object under the top-level key `metadata` which contains a
`generators` property. This property is a list of all generators involved
in the creation of a manifest.

Each generator can add its name and version to this list.

Signed-off-by: Simon de Vlieger <supakeen@redhat.com>
This commit is contained in:
Simon de Vlieger 2024-10-10 18:21:54 +02:00 committed by Michael Vogt
parent 2d1e8553d7
commit 12dcf3c6d9
3 changed files with 40 additions and 0 deletions

View file

@ -19,6 +19,9 @@
"enum": [ "enum": [
"2" "2"
] ]
},
"metadata": {
"$ref": "#/definitions/metadata"
} }
}, },
"definitions": { "definitions": {
@ -83,6 +86,31 @@
} }
} }
}, },
"metadata": {
"title": "Metadata information for a manifest",
"type": "object",
"additionalProperties": false,
"properties": {
"generators": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
}
}
}
}
}
},
"mounts": { "mounts": {
"title": "Collection of mount points for a stage", "title": "Collection of mount points for a stage",
"type": "array", "type": "array",

View file

@ -1,5 +1,13 @@
{ {
"version": "2", "version": "2",
"metadata": {
"generators": [
{
"name": "osbuild-mpp",
"version": "unknown"
}
]
},
"pipelines": [ "pipelines": [
{ {
"runner": "org.osbuild.fedora39", "runner": "org.osbuild.fedora39",

View file

@ -2,6 +2,10 @@
# Noticed the org.osbuild.test that was added. # Noticed the org.osbuild.test that was added.
version: '2' version: '2'
metadata:
generators:
- name: osbuild-mpp
version: unknown
pipelines: pipelines:
- mpp-import-pipelines: - mpp-import-pipelines:
path: fedora-vars.ipp.yaml path: fedora-vars.ipp.yaml