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

Check property name variations #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

natrem
Copy link

@natrem natrem commented Oct 16, 2023

Apply relaxed binding as spring boot implementations

As discussed in the issue, the implementation supports more than only the documented pattern:

  1. initial property name e.g. this.is-a_PROPERTY
  2. initial property name, replacing dots . by underscores _, e.g. this_is-a_PROPERTY
  3. initial property name, replacing hyphens - by underscores _, e.g. this.is_a_PROPERTY
  4. initial property name, replacing dots . and hyphens - by underscores _, e.g. this_is_a_PROPERTY
  5. uppercase property name, e.g. THIS.IS-A_PROPERTY
  6. uppercase property name, replacing dots . by underscores _, e.g. THIS_IS-A_PROPERTY
  7. uppercase property name, replacing hyphens - by underscores _, e.g. THIS.IS_A_PROPERTY
  8. uppercase property name, replacing dots . and hyphens - by underscores _, e.g. THIS_IS_A_PROPERTY

The tests focus on validating the documented pattern: if the code requires a property named this.is-a-property (or other combination of dots and hyphens), then providing THIS_IS_A_PROPERTY in dotenv file works.

close #16

Apply relaxed binding as spring boot implementations
@natrem
Copy link
Author

natrem commented Nov 6, 2023

@paulschwarz not to pressure you, but did/will you have some time to check this out?

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

Successfully merging this pull request may close these issues.

Support relaxed bindings for acting like SystemEnvironmentPropertySource
1 participant