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

Have Arkana support SCREAMING_SNAKE_CASE env var names #59

Open
rogerluan opened this issue May 22, 2024 · 1 comment
Open

Have Arkana support SCREAMING_SNAKE_CASE env var names #59

rogerluan opened this issue May 22, 2024 · 1 comment

Comments

@rogerluan
Copy link
Owner

Currently the only supported case is CamelCase due to how the mapping is done internally within Arkana. However, it's pretty standard to have SCREAMING_SNAKE_CASE being used as the capitalization rule for env vars (in any programming language that I know of). For this reason, we should either make screaming snake case an alternative and valid case, OR make it the only valid case, OR allow for custom mappings (e.g. a file that maps between the env var name and the actual env var identifier it should map to when generating the code in e.g. Swift, Kotlin, etc), for instance:

{
    "API_KEY": "apiKey",
    "AUTH_TOKEN_KEY": "authToken"
    …etc.
}
@davemess
Copy link

davemess commented Nov 8, 2024

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants