Skip to content

Conversation

@zeitlinger
Copy link
Member

Alternative for #15775 that limits type ceorcion to environment variables.

@zeitlinger zeitlinger self-assigned this Jan 7, 2026
@zeitlinger zeitlinger requested a review from a team as a code owner January 7, 2026 09:43
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Jan 7, 2026
.isEqualTo("string_value");

assertThat(config.getBoolean("bool_key")).isTrue();
assertThat(config.getBoolean("bool_key_with_env")).isNull();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with otel declarative config this would be isTrue(), I think it will be confusing if that doesn't work

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, that's possible - neither PR is perfect in terms of UX.

I think we have to start with one and see how user like it.

  • From my own experience, the spring style override is more common, which still works
  • non-string properties are also quite rare

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the spring style override

what is the spring style override?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I'm coming around to doing the runtime coercion for spring that you originally proposed...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK - feel free to merge 😄

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

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

Development

Successfully merging this pull request may close these issues.

2 participants