-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"$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"] } | ||
] | ||
} | ||
} | ||
} |