Closed Riduidel closed 7 years ago
So, it seems the issue can be sourced to RouteMethodSourceVisitor#visit(NormalAnnotationExpr anno, ControllerRouteModel route)
. indeed, in this method, the switch
statement, for "uri"
value (as well as for others), uses the ExtractUtil#asString
method which always consider its content to be string, even when it is a reference to another value.
@barjoWDYT ?
Sorry I missed that one
I use to write my routes the following way (cause I'm fan of clearly separated informations)
When doing so, wisdom-raml-maven-plugin generates the following RAML file
This is obviously incorrect. My understanding is that this plugin performs some source code parsing in order to get the javadoc. Unfortunatly, this parsing fails to read the constant I use in annotation. I guess it may be due to wisdom-source-model which ignore references to constants in annotations.