Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically change the names of properties to be mapped to UpperCaseSnakeCase #111

Closed
MrDave1999 opened this issue Nov 16, 2022 · 0 comments · Fixed by #112
Closed

Automatically change the names of properties to be mapped to UpperCaseSnakeCase #111

MrDave1999 opened this issue Nov 16, 2022 · 0 comments · Fixed by #112
Labels
feature New feature or request

Comments

@MrDave1999
Copy link
Owner

MrDave1999 commented Nov 16, 2022

The documentation mentions:

The EnvKey attribute is used in case the key names do not match the properties and this is because the key names in a .env file usually follow this convention: KEY_NAME=VALUE (UpperCase + SnakeCase).

It would be great if the library would automatically convert the names of the properties to be mapped to UpperCaseSnakeCase without the need to use the EnvKey attribute. In this way, it would no longer be necessary to manually add the EnvKey decorator in each property of the AppSettings class.

PD: No conversion is performed when using the EnvKey decorator.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
1 participant