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
In the example above, I can call the v1 api with header 'Accept-Version': v1 and call the v2 api with header 'Accept-Version': v2.
This is the openapi generated:
Is there an existing issue for this?
Current behavior
Enabling versioning with type "header", @nestjs/swagger doesn't generate the right documentation.
In the example I have two api in the same path with different versions
In the example above, I can call the v1 api with header 'Accept-Version': v1 and call the v2 api with header 'Accept-Version': v2.
This is the openapi generated:
It has only the v2 version.
Also adding
ApiImplicitHeader
in each version doesn't resolve the issueMinimum reproduction code
https://github.com/DCampagnola/nestjs-swagger-header-versioning-bug/tree/main
Steps to reproduce
npm i
npm start:dev
/api-json
Expected behavior
Generated api should include every version declared with the different docs
Package version
6.1.4
NestJS version
No response
Node.js version
No response
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: