fastify / fastify-swagger

Swagger documentation generator for Fastify
MIT License
910 stars 200 forks source link

`formatParamUrl` should be exposed #747

Closed marcopiraccini closed 1 year ago

marcopiraccini commented 1 year ago

Prerequisites

🚀 Feature Proposal

The formatParamUrl function HERE translates path in the fastify router format to openapi. It would be great to have it exposed as decorator, so it could be used from the same purpose on other projects.

Motivation

I need to do exactly what this function does, but is not exposed from this module.

Example

No response

Uzlopak commented 1 year ago

Should it really be a decorator? And if you how name it? Cant we just expose it to be requirable?

mcollina commented 1 year ago

We can also expose it to be requirable, it would work well for us too.

Uzlopak commented 1 year ago

I think exposing would be cleaner.

Uzlopak commented 1 year ago

see #748

marcopiraccini commented 1 year ago

Yes, requirable is OK.