Add config validation logic to ensure that the configuration values provided are sensible and LGW can work with these.
Feature
This may be something completely custom, but it would be nice if we could use some already established validation options, too.
Solution Ideas:
Write custom checks on the application start
Consider leveraging existing JSR-303 validation approach with Springboot's @Valid and @Validation annotations. Related article. Just beware, that we use @ConstructorBinding that may not work with @ConfigurationProperties
Background
Add config validation logic to ensure that the configuration values provided are sensible and LGW can work with these.
Feature
This may be something completely custom, but it would be nice if we could use some already established validation options, too.
Solution Ideas:
@Valid
and@Validation
annotations. Related article. Just beware, that we use@ConstructorBinding
that may not work with@ConfigurationProperties