Closed Fifi31 closed 2 years ago
Thank you, please try v0.2.22
.
Thanks, I briefly tested it but it is still not working. I will dig deeper in it when I have time.
Hey @vearutop I had the chance to look at it, and it works well. Thanks for everything !
Hello, Imagine I have the 2 routes in my API :
/users/{userID:[^/]+}
and/users/{userID:[^/]+}/books/{bookID:.+}
. The regexp are[^/]+
because without it, callingusers/toto/books/openapi
, matches with/users/{userID:[^/]+}
with userID beingtoto/books/openapi
.The problem is that during
Spec.SetupOperation()
,{userID:[^/]+}
is not matched byregexFindPathParameter
({([^}:]+)(:[^/]+)?(?:})
).I think changing the regex to
{([^}:]+)(:[^}]+)?(?:})
would solve the problem.