30 lines
872 B
JSON
30 lines
872 B
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://config-central.local/schemas/machine.schema.json",
|
|
"title": "Config Central machine",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schemaVersion", "name", "profiles"],
|
|
"properties": {
|
|
"$schema": { "type": "string" },
|
|
"schemaVersion": { "const": 1 },
|
|
"name": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" },
|
|
"profiles": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"uniqueItems": true,
|
|
"items": { "type": "string", "pattern": "^[a-z0-9][a-z0-9-]*$" }
|
|
},
|
|
"packages": {
|
|
"type": "array",
|
|
"items": { "$ref": "profile.schema.json#/$defs/package" },
|
|
"default": []
|
|
},
|
|
"configs": {
|
|
"type": "array",
|
|
"items": { "$ref": "profile.schema.json#/$defs/config" },
|
|
"default": []
|
|
}
|
|
}
|
|
}
|