Closed ghost closed 9 years ago
If getResolvedUriParameters is run on the resource child2 below, no parameters is returned. If it is run from child1, the id parameter is returned.
/{id}: uriParameters: id: type: integer required: true example: 7393 /child1: /child2: get: responses: 200: body:
It looks like this line:
Map<String, UriParameter> uriParams = new HashMap<String, UriParameter>(parentResource.getUriParameters());
Should be:
Map<String, UriParameter> uriParams = new HashMap<String, UriParameter>(parentResource.getResolvedUriParameters());
I absolutely agree, but this is code of the Resource class, which is part of the (https://github.com/raml-org/raml-java-parser) project.
Ah, ok.
If getResolvedUriParameters is run on the resource child2 below, no parameters is returned. If it is run from child1, the id parameter is returned.
It looks like this line:
Should be: