[services-systemd] Add a schema file for the configuration
This commit is contained in:
parent
7aaefa42d1
commit
e9083ecabb
25
src/modules/services-systemd/services-systemd.schema.yaml
Normal file
25
src/modules/services-systemd/services-systemd.schema.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# SPDX-FileCopyrightText: 2020 Adriaan de Groot <groot@kde.org>
|
||||||
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||||
|
---
|
||||||
|
$schema: https://json-schema.org/schema#
|
||||||
|
$id: https://calamares.io/schemas/services-systemd
|
||||||
|
definitions:
|
||||||
|
service:
|
||||||
|
$id: '#definitions/service'
|
||||||
|
type: object
|
||||||
|
description: a name and a flag for services, targets, and others
|
||||||
|
additionalProperties: false
|
||||||
|
properties:
|
||||||
|
name: { type: string }
|
||||||
|
mandatory: { type: boolean, default: false }
|
||||||
|
required: [ name ]
|
||||||
|
|
||||||
|
additionalProperties: false
|
||||||
|
type: object
|
||||||
|
properties:
|
||||||
|
services: { type: array, items: { $ref: '#definitions/service' } }
|
||||||
|
targets: { type: array, items: { $ref: '#definitions/service' } }
|
||||||
|
timers: { type: array, items: { $ref: '#definitions/service' } }
|
||||||
|
disable: { type: array, items: { $ref: '#definitions/service' } }
|
||||||
|
disable-targets: { type: array, items: { $ref: '#definitions/service' } }
|
||||||
|
mask: { type: array, items: { $ref: '#definitions/service' } }
|
Loading…
Reference in New Issue
Block a user