systemd · API Governance Rules
systemd API Rules
Spectral linting rules defining API design standards and conventions for systemd.
systemd API Rules is a Spectral governance ruleset published by systemd on the APIs.io network, containing 8 lint rules.
The ruleset includes 3 error-severity rules, 4 warning-severity rules, and 1 hint-severity rule.
Tagged areas include Boot, Cgroups, Container, D-Bus, and Init.
Rulesets can be applied to your own OpenAPI specs via Spectral to enforce the same governance standards.
8 Rules
error 3
warn 4
Rule Categories
systemd
Rules
error
systemd-operationid-pascalcase
operationId must use PascalCase, matching the D-Bus method name (e.g. StartUnit, ListSessions, SetLinkDNS).
$.paths[*][*]
warn
systemd-summary-title-case
Operation summaries must be in Title Case.
$.paths[*][*].summary
error
systemd-summary-required
Every operation must declare a summary.
$.paths[*][*]
warn
systemd-description-required
Every operation must declare a description that names the underlying D-Bus or Varlink method (use the word "Mirrors" for D-Bus, "Calls" for Varlink).
$.paths[*][*]
error
systemd-server-transport
Server URL must use one of the systemd transport schemes (dbus://, varlink://).
$.servers[*].url
warn
systemd-tags-title-case
Tag names must be in Title Case (matching the network-wide convention).
$.tags[*].name
hint
systemd-info-contact
info.contact should be present for traceability.
$.info
warn
systemd-license-lgpl-or-gpl
License must be LGPL-2.1-or-later or GPL-2.0-or-later (systemd's dual licensing).
$.info.license.name