fastify / fastify-swagger

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

feat: add api version filter based route version contraint #738

Closed Liam-Tait closed 1 year ago

Liam-Tait commented 1 year ago

Adds the ability to provide an apiVersion config value with a semver range.

The route version is sourced from the fastify version constraint.

Semver parsing is completed using the semver package satisfies function, which has been added as a new dependency.

closes #732

Checklist

Uzlopak commented 1 year ago

See discussion in #737

Maybe pass the whole constraints object. Lets discuss this in #737

Liam-Tait commented 1 year ago

If #739 goes through, this pr is not required as the functionality is possible using transform

mcollina commented 1 year ago

Closing due to https://github.com/fastify/fastify-swagger/pull/739