Skip to content

Schema Validation error with non-empty 'rename' set #18

@Enormoss

Description

@Enormoss

If config file contains non-empty dictionary for 'rename',
function load_config in config.py throw exception of Schema validation error.

SchemaError: Key 'rename' error:
Wrong keys '836d1983631e' in {'836d1983631e': 'room'}

Solution is to set in config.py key 'rename' to type of 'object' on

Optional('rename'): {}

to

 Optional('rename'): object

as is mentioned at https://github.com/keleshev/schema#extra-keys

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions