New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Microprofile Config Support #1106
Comments
Can it be related to the wrong json syntax in properties file, i.e. capitalized true
If you absolutely must have uppercase or other custom boolean, you can add type adapter to |
oh, the capitalized true was a test which was committed accidential to the reproducer. My first attempt was with an lowercase true but it also didnt work. But this is not the reason why i opened the issue. |
@alexander-dammeier You commented there is an jax-rs integretation. does it mean I'm able to receive all my forms on my jaxrs method? Could you provide me any helping snippet code over there or documentation? |
@jeusdi Immutables have an implementation of |
Hi,
i am using Eclipse Microprofile Config API on
Payara Micro 5.193.1
withOpenJDK11
and i tried to load json objects from my configuration file and let them automatically parse to my immutable.org type. Because of the missing converter it throws an exception.Since there is already a json integration and even a jax-rs integration, I would be very happy if there would be an integration for Eclipse Microprofile Config API too.
expected outcome
The following injection will automatically parse my configvalue to MyEntity.
APIEndpoint.java:
META-INF/microprofile-config.properties
Reproducer
I created a minimal reproducer for this with a simple converter using immutables.org´s gson integration. There is also a little REST-API to get the entity.
The reproducer is based on the official documentation(page 11) of the eclipse microprofile Config API.
There is one little problem left with my code. The boolean value is always parsed as false by gson. This seems to be a known problem.
The text was updated successfully, but these errors were encountered: