[services-systemd] Add a schema file for the configuration

This commit is contained in:
Adriaan de Groot 2021-10-29 16:41:03 +02:00
parent 7aaefa42d1
commit e9083ecabb

View 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' } }