oscerd commented on PR #22830:
URL: https://github.com/apache/camel/pull/22830#issuecomment-4345461558
Yes, the validator understands placeholders. The underlying
`CamelCatalog.validateConfigurationProperty()` already handles them in
`AbstractCamelCatalog.doValidateConfigurationProperty()` — when the value
starts with `{{`, `${`, or `$simple{`, all type-based validation (boolean /
integer / number / duration / enum / deprecation / lookup) is skipped, and the
option is still resolved against the catalog so unknown keys still produce
errors as expected.
Added a dedicated test (`acceptsPlaceholderValuesAcrossTypes`) covering
boolean, integer and string options with `{{...}}` values, plus a smaller
`acceptsSpringStylePlaceholderValue` test for the `${...}` form. All 199 tests
pass.
_Claude Code on behalf of Andrea Cosentino_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]