Skip to content

Can ENV not be forced to lowercase? Or Case could add a support for converting to AA_BB instead of AA BB #672

@Zzaniu

Description

@Zzaniu

let mut key = key.to_lowercase()
Because I see that ENV is forced to be lowercased here, if my struct is renamed to uppercase and underscored, the ENV parsing will fail consistently.
I tried using convert_case(config::Case::Upper) but it fails if there is an underscore. Now in order to support env, I have to make it all lowercase and underlined.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions