$darkmode
Elektra 0.11.0
Use Case: Create enum specification for dockerd configuration file (daemon.json)

The log level configuration for the dockerd could look like:

[log/level]
meta:/description = Set the logging level
meta:/enum/check = #4
meta:/enum/check/#0 = debug
meta:/enum/check/#1 = info
meta:/enum/check/#2 = warn
meta:/enum/check/#3 = error
meta:/enum/check/#4 = fatal
meta:/default = info

In case the key log/level does not exist, spec plugin creates a default key with value info in the default namespace.

For the full specification of the dockerd configuration file see dockerd-spec.