$darkmode
Elektra 0.11.0
|
Inconsistent use of booleans in various parts of Elektra.
type = boolean
without a defaultOnly the strings 0
and 1
are allowed in the KeySet
for type = boolean
, for both values and defaults. Everything else should lead to errors in checkers (in kdbSet
).
A spec with type = boolean
without a specified default should be interpreted as default = 0
.
Example for an implementation in C in an application:
Storage plugins are allowed any representation as suitable, e.g., a JSON plugin might render 1
as true
.
The type checker plugin should allow
0
or 1
as key values0
or 1
, or (without a key) can safely assume that false is meant