Skip to content

Error for unknown schema key #94

@jbrezmorf

Description

@jbrezmorf

When reading a schema we should raise an error for any unknown key. Currently we
only read known keys from the dict, so we can easily miss a typo or wrong key alignment in the schema YAML file.

One potential solution is do that in schema_ctx:

  • for any get['key'] of a dict maintain set of read keys
  • call 'check_unused_keys' will report unused (invalid) keys ; we must be carefull to access all keys in any scenario!

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