utils: parsing: problem with replacing '-' with '_'
When parsing a configuration using ParsedTree, -
are automatically converted to _
in the parsed dictionary keys. This is a problem when modelled SchemaNode
class has field of type Dict[str, ...]
. Each -
in key is replaced by _
which causes a difference from the intended configuration. For example forward-zone is type of Dict[DomainName, ForwardZoneSchema]
. This can result in an invalid domain.
Edited by Aleš Mrázek