Im using the latest version of nestjs/Swagger 4.0.9 and see now setSchemes function is deprecated. Please suggest what is the new function to be called instead of setScheme. I coudn't find it anywhere in the nestjs documentation or Internet.
My main use case which was fulfilled by setSchemes function previously was that in local dev environment i using scheme as http and in production i was using https. Please suggest.
addServer() would solve your issue.
That helps.Thanks
@nartc @amit12cool for a dummy like me how should I use addServer to replicate the behavior of setSchemes('http','https')?
@vegerot try something like:
new DocumentBuilder()
.addServer('http://')
.addServer('https://')
...
full details here.
Thanks, that's what I ended up doing
Most helpful comment
@vegerot try something like:
full details here.