Skip to content
This repository was archived by the owner on Oct 19, 2020. It is now read-only.
This repository was archived by the owner on Oct 19, 2020. It is now read-only.

Action when Toml.ReadFile<T>(file) is missing keys or has extra keys #83

Description

@avsteele

I can use Toml.ReadFile to parse a TOML and set some class T's member's from it.

If the TOML file does not have a key corresponding to a member of T, then that member has its default value.

If the TOML file has additional entries beyond those contained in T, those keys are silently ignored by default

I didn't see a way to configure TomlSettings to Throw or specify a Action to take in the above circumstances. Is this possible?

Thanks for Nett!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions