Skip to content

Enhance config validation #33

@cb-Hades

Description

@cb-Hades

Current state of the validate_config function:

  • able to - somewhat - traverse the yaml and merge it with defaults
  • throw warnings at USER keyword + set it to None
  • throw error at __USER__ keyword
  • test for paths, if parameter in corresponding list

Issues:

  • code rather verbose and hard to maintain
  • keyword USER always set to None -> might be better to set more sensible defaults

Ideas:

  • check, if input is correct, e.g. numbers in range, string sensible etc., not just the paths
  • better handling of optional params

Metadata

Metadata

Assignees

No one assigned

    Labels

    configAbout the config files (YAMLs)enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions