Skip to content

Smallrye config with list #24107

Answered by radcortez
manofthepeace asked this question in Q&A
Discussion options

You must be logged in to vote

This should work:

@WithConverter(RangeConverter.class)
List<Range> list();

But it seems that in the case of the list, the RangeConverter is not being added to the converter list, so you get the error message No Converter registered.... Please, register the Converter manually like this: https://quarkus.io/guides/config-extending-support#custom-converter.

In the meanwhile, I'll have a look into SmallRye Config to make this work without having to register the Converter with the ServiceLoader in the case of a List.

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@radcortez
Comment options

@radcortez
Comment options

@radcortez
Comment options

@manofthepeace
Comment options

@radcortez
Comment options

Answer selected by manofthepeace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants