-
Notifications
You must be signed in to change notification settings - Fork 32
Runtime-Based MicroProfile Config Validation for LSP4MP #512
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
Runtime-Based MicroProfile Config Validation for LSP4MP #512
Conversation
48cfd7a to
87c169a
Compare
1c123ba to
faa3481
Compare
6268068 to
68a0eb0
Compare
datho7561
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll keep looking tomorrow, I'm still trying to understand the code.
...ipse.lsp4mp.ls/src/test/java/org/eclipse/lsp4mp/commons/runtime/TypeSignatureParserTest.java
Show resolved
Hide resolved
eb4f4d9 to
59de3e7
Compare
11dd515 to
e019c37
Compare
|
Can't we provide an extension point instead for eg. Liberty tools to provide their Validation mechanism, and just disable value validation if none is provided? There are several things I'm not comfortable with:
|
It is not only for Liberty Tools, it is for other MP project which have no MP implementation in their classpath. We could indeed providing an extension point for that, but I am not sure that it is really interesting. This PR has been tested with Quarkus/Liberty project on all OS and it seems it is working pretty well. I would like to merge this PR and work on
I agree but can I merge the PR and improve that after the merge. @datho7561 do you think you could work on it? I would like really working on But for now I need this PR and next PR with evaluate mode to include it in IJ Quarkus which will fix a lot of false positive errors. |
|
IBM are OK to merge this PR, @datho7561 @fbricon are OK with that? |
3f6e45f to
d13dc1b
Compare
fixed (thanks to @datho7561 )
Now the strategy is different, MicroProfile JDT add those lib in the Bundle CLasspath. I need to do that because SmallRye Config is complex (not OSGIfied and use Java SPI). I spent so many times to try to support this SmallRyeConfig dependency with tycho (like we have with SmallRye expression but without success). |
d13dc1b to
1b3ed75
Compare
Fixes eclipse-lsp4mp#511 Signed-off-by: azerr <[email protected]>
1b3ed75 to
dd16d84
Compare
|
See PR redhat-developer/vscode-microprofile#546 which defines |
|
Since IBM has tested the PR with Liberty and me I have tested with Quarkus/Liberty I merged the PR because I would like to integrate thi sfeature in IJ Quarkus which is very expected by user. If there are some improvement to do in this PR, don't hesitate to create issues. |
Runtime-Based MicroProfile Config Validation for LSP4MP
Fixes #511
Here a sample in application.properties which report error by using SamllRye converter:
and in Java files:
it is working also with custom enum:
The settings
"microprofile.tools.validation.value.severity": "none|error|warning" is now used to manage validation value error:in properties and Java files: