agama/service/share/autoyast-compat.schema.json
Martin Vidner 3fefbf59da Added JSON schema for autoyast-compat.json
zypper install python3-jsonschema.rpm
jsonschema -i autoyast-compat.json autoyast-compat.schema.json

TODO: check in CI, maybe make `agama profile validate` a bit more
generic
2025-02-07 21:46:51 +01:00

44 lines
1.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft-07/schema",
"$id": "https://github.com/openSUSE/agama/blob/master/service/share/autoyast-compat.schema.json",
"title": "AutoYaST profile compatibility description",
"description": "For elements of AutoYaST profiles, describes whether Agama will understand them",
"type": "array",
"items": {
"$ref": "#/definitions/profileElement"
},
"definitions": {
"profileElement": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string"
},
"support": {
"type": "string",
"enum": ["yes", "no", "planned"]
},
"notes": {
"type": "string"
},
"agama": {
"type": "string"
},
"children": {
"type": "array",
"items": {
"$ref": "#/definitions/profileElement"
}
}
},
"required": [
"key"
],
"oneOf": [
{ "required": ["support"] },
{ "required": ["children"] }
]
}
}
}