jakartaee / config

Jakartaconfig project
Apache License 2.0
20 stars 16 forks source link

Add bean validation integration #25

Open hantsy opened 2 years ago

hantsy commented 2 years ago

In a ConfigurationProperties bean described in #19, allow add bean validation annotation to validate the config by parsing/loading time.

hantsy commented 2 years ago

BTW, I would like use a @NotNull or JSR305 like annotation on Converter, etc. to ensure the argument is not null, it seems Jakarta Commons Annotation added some annotations like this.

m0mus commented 2 years ago

Jakarta Config should be a lightweight configuration without dependencies to other specification. An exception could by Jakarta Annotations or upcoming Jakarta Commons. Even CDI integration should be optional and provided in a separate jar because there are users who want to use Config without CDI.

hantsy commented 2 years ago

Understand, but this should be in the todo list if we move to build the Bean Validation integration in future.