You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PS:
the problem is in RequestUtils.extract
calculating the segment from the end of the url instead of the begining solves the issue:
//return new RequestParameterImpl(decodeUrl(pathSegments[segment - 1]));
return new RequestParameterImpl(decodeUrl(pathSegments[pathSegments.length - segment-1]));
//return (int) templatePath.subSequence(0, idx).chars().filter(c -> c == '/').count();
return (int)
(templatePath.chars().filter(c -> c == '/').count() -
templatePath.subSequence(0, idx).chars().filter(c -> c == '/').count());
Version
5.0.0.CR3
Context
The openapi router with GET /data/{id} is added as a subrouter to /api/test
Invoking http://localhost:8082/api/test/data/1 throws a validation exception:
Debugging RequestValidatorImpl.validate shows that in request.path key "id" has value "test"
however, if the parameter type constraint is removed, invoking RoutingContext.pathParams() in the route handler returns the expected value: id -> 1
Do you have a reproducer?
verticle:
openapi:
The text was updated successfully, but these errors were encountered: