Skip to content

Configuration file validation not working #319

@forsyth2

Description

@forsyth2

It looks like the configuration file validation (https://github.com/E3SM-Project/zppy/blob/main/zppy/__main__.py#L169) isn't working anymore.

While working on #281, I tried removing a trailing comma and the validator passed, even though it has historically failed in such cases -- see #290. I tried setting active = 4, which I would have expected to fail since active expects a bool value; however validation passed and a ValueError: Invalid value 4 for 'active' appeared during runtime.

It appears that something has changed in the validation process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    semver: bugBug fix (will increment patch version)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions