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
nameis the name of the setting in the .conf, it should be a path as defined abovetois the name of the setting in the sys.config, it should be a path as defined abovedatatypeis 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.defaultthe default value to use if one is not provided in the .confenv_varif set, will use the value of the given environment variable as the default value for this optiondocthe documentation comment which will accompany this setting in the generated .confseethe name of another setting which you wrote adocfor, 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 .confcommentedis a boolean which determines whether this setting should be commented by default in the generated .confhiddenis 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_defaultif 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.validatorsa list of validator names which will be executed against the value of this setting once it has been mapped to the defined datatype.