Skip to content

Values are not read from environment variables when using PropertyParser starting with Version 1.1.8 #19

Description

@jtpgames

Dear Developers,

starting with version 1.1.8 we cannot use the library anymore when using the PropertyParser to read environment variables. The same code, that works with version 1.1.7, returns a null value starting with version 1.1.8.

Example code:
val mavenUrl = common.prop.string("GSMavenUrl")

After looking through the commits, I found that this behavior was introduced in the commit
3953857
which uses ToUpperSnakeCase() to reformat the name of the property.

In our company, we have a different CaseStyle for our environment variables and it is not feasible for us to rename all our environment variables.

Is it possible to suppress this new behavior via a configuration value or a parameter?

Kind Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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