+
Skip to content

It would be nice to have ThrowExceptionOnUknownProperties flag in TomlModelOptions class #93

@golden-aries

Description

@golden-aries

It would be nice to have ThrowExceptionOnUknownProperties flag in TomlModelOptions class.
Which would instruct the Toml.ToModel operation

Toml.ToModel<MyModel>(str, new TomlModelOptions { IgnoreMissingProperties = true, ThrowExceptionOnUknownProperties = true} )`

to throw exception if it finds unknown(misspelled) properties when de-serializing string into predefined model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    PR welcomeUser contribution/PR is welcomeenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载