Skip to content

Make deny_unknown_fields a runtime feature #209

@TheJokr

Description

@TheJokr

settings_deny_unknown_fields_by_default is a useful feature (that's why its enabled by default), but in some applications it is desirable to have the option to be strict. For example, be strict when validating new configs but permissive when parsing existing files from disk.

We should find a way to support such use cases. Maybe we can track which fields were not deserialized in the Deserializer impl?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions