]
Jeff MAURY updated JBIDE-26970:
-------------------------------
Fix Version/s: 4.16.0.AM1
(was: 4.15.0.Final)
Validator: The annotation @PathParam must define the attribute value
--------------------------------------------------------------------
Key: JBIDE-26970
URL:
https://issues.redhat.com/browse/JBIDE-26970
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: webservices
Affects Versions: 4.13.0.Final
Reporter: nimo stephan
Assignee: Jeff MAURY
Priority: Major
Fix For: 4.16.0.AM1
Attachments: jax-rs-validator.png
According to
https://developer.jboss.org/en/resteasy/blog/2018/05/29/new-blog, I can
define a resource with
{code:java}
public String hello(@PathParam String name) {
..
}
{code}
instead of
{code:java}
public String hello(@PathParam(value="name") String name) {
..
}
{code}
when setting the following in pom.xml:
{code:java}
<maven.compiler.parameters>true</maven.compiler.parameters>
{code}
However, jboss tools validator complains about it as a validator error:
{code:java}
The annotation @PathParam must define the attribute value")
{code}
and compilation fails.
So I tried to disable some validators according to JbossPath-Params (see attachement).
However, the error is still shown in my editor by the validator.