conform v2.5.2 Conform.Schema.Mapping
This module defines a struct which represents a mapping definition.
Definitions
- “path” - A string of dot-separated tokens which represent the path to a setting, a path can contain variables which represent wildcard values such that any value at that point in the path is valid.
Fields
name
is the name of the setting in the .conf, it should be a path as defined aboveto
is the name of the setting in the sys.config, it should be a path as defined abovedatatype
is the type of the value this setting will be mapped to, see the documentation for information on what datatypes are available. User-defined types are also possible.default
the default value to use if one is not provided in the .confenv_var
if set, will use the value of the given environment variable as the default value for this optiondoc
the documentation comment which will accompany this setting in the generated .confsee
the name of another setting which you wrote adoc
for, but which also describes this setting. Used when describing how multiple settings work together, as it’s just a pointer to additional documentation. It will be output as a comment in the generated .confcommented
is a boolean which determines whether this setting should be commented by default in the generated .confhidden
is a boolean which determines whether this setting will be placed in the generated .conf, in this way you can provided “advanced” settings which can be configured but only by those who know they exist.include_default
if set to a string, it will be used in place of a wildcard value when generating a .conf, if nil, the generated .conf will contain a commented default which contains the wildcard in the path.validators
a list of validator names which will be executed against the value of this setting once it has been mapped to the defined datatype.