Closed olensmar closed 10 years ago
Yes please - thank you Ole! On Jun 22, 2014 1:36 PM, "Ole Lensmar" notifications@github.com wrote:
The code generation currently doesn't add @PathParam arguments for path parameters in parent resources. I've changed Generator.addPathParameters to the following:
private void addPathParameters(final Action action, final JMethod method, final JDocComment javadoc) throws Exception { Resource resource = action.getResource(); while( resource != null ) { for (final Entry namedUriParameter : resource.getUriParameters().entrySet()) { addParameter(namedUriParameter.getKey(), namedUriParameter.getValue(), PathParam.class, method, javadoc); }
resource = resource.getParentResource(); }
}
which works fine. Do you want a pull-request for this?
— Reply to this email directly or view it on GitHub https://github.com/mulesoft/raml-jaxrs-codegen/issues/18.
Should be fixed now
The code generation currently doesn't add @PathParam arguments for path parameters in parent resources. I've changed Generator.addPathParameters to the following:
which works fine. Do you want a pull-request for this?