Skip to content

Overriding enum values doesn't work #636

Description

@xldenis

Consider the following enum:

#[derive(Deserialize)]
pub enum Config {
    Case1 {
        field: bool,
    },
    Case2 {
        field: String,
    },
}

It becomes impossible to override the value of Config in through overlaid sources leading to "value of enum Config should be represented by either string or table with exactly one key". I would like to be able to provide a default value for this configuration but have a later, more specific bit of config override this. Is this a change which would be acceptable?

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