agama/rust/agama-lib/share/dasd.schema.json
José Iván López González ce81e488f3 Fix dasd schema
2026-02-25 09:47:34 +00:00

41 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://github.com/agama-project/agama/blob/master/rust/agama-lib/share/dasd.schema.json",
"title": "Config",
"description": "DASD config.",
"type": "object",
"additionalProperties": false,
"properties": {
"devices": {
"description": "List of DASD devices.",
"type": "array",
"items": { "$ref": "#/$defs/device" }
}
},
"$defs": {
"device": {
"type": "object",
"additionalProperties": false,
"required": ["channel"],
"properties": {
"channel": {
"description": "DASD device channel.",
"type": "string"
},
"state": {
"description": "Specify target state of device. Either activate it or deactivate it.",
"enum": ["active", "offline"],
"default": "active"
},
"format": {
"description": "If device should be formatted. If not specified then it format device only if not already formatted.",
"type": "boolean"
},
"diag": {
"description": "If device have set diag flag. If not specified then it keep what device has before.",
"type": "boolean"
}
}
}
}
}