I've got a situation where I'm taking an OpenAPI v3 doc, parsing it, and registering its paths in find-my-way via fastify.
However, I'm facing a problem where the OpenAPI doc has path parameters in the format {some-param}. I convert those to :some-param for find-my-way, but they're then interpreted as a parameter some + a path segment param. This is caused by this parsing logic: https://github.com/delvedor/find-my-way/blob/master/index.js#L131
I'll submit a PR, but I think that logic should ensure that the - character is followed by a : to indicate the second parameter. Otherwise, it should be assumed that it's just a continuation of the original parameter up to the next /.
I've got a situation where I'm taking an OpenAPI v3 doc, parsing it, and registering its paths in find-my-way via fastify.
However, I'm facing a problem where the OpenAPI doc has path parameters in the format
{some-param}. I convert those to:some-paramfor find-my-way, but they're then interpreted as a parametersome+ a path segmentparam. This is caused by this parsing logic: https://github.com/delvedor/find-my-way/blob/master/index.js#L131I'll submit a PR, but I think that logic should ensure that the
-character is followed by a:to indicate the second parameter. Otherwise, it should be assumed that it's just a continuation of the original parameter up to the next/.