#Integrate Scalar (swagger UI alternative)

1 messages · Page 1 of 1 (latest)

tribal spruce
#

Hey NestJS community we've had a few requests to add Scalar (https://github.com/scalar/scalar) as an alternative option to Swagger UI for NestJS.

Before making any PR's we'd love to get feedback from the NestJS community and see if people would be interested in it. Here's a demo of Scalar with petstore & a custom NestJS theme: https://nestjs.apidocumentation.com/

odd token
#

Not sure about adding a PR directly to @nestjs/swagger or anything like that, but it is good to know the alternatives that exist out there

gleaming merlin
patent cipher
#

@tribal spruce a PR to which repo, exactly?

#

I'll try that lib
seems cool

tribal spruce
patent cipher
tribal spruce
#

@patent cipher amazing 🙂 let me know if you need any help integrating!

open saffron
#

It looks really interesting to me, I'll try it out!

open saffron
tribal spruce
# open saffron It looks amazing!! It worked out of the box. The only issue that I have is that ...

Ah! I’ll look into this today @open saffron , my guess could be around headers being set but I’ll dive into why 🙂

Feel free to make an issue on https://github.com/scalar/scalar else I will ✨

GitHub

Beautiful API references from Swagger/OpenAPI files ✨ - GitHub - scalar/scalar: Beautiful API references from Swagger/OpenAPI files ✨

open saffron
tribal spruce
open saffron
#

No worries! Thanks a lot for taking care of it!

tribal spruce
#

hey @open saffron i sadly wasn'y able to reproduce this, are you able to share an example repo or some console.log information in the github issue? I also left a comment showing it working with me in our example nestjs app in the repo

https://github.com/scalar/scalar/issues/727#issuecomment-1868602162

GitHub

Expected Behavior it won't run alongside Helmet https://docs.nestjs.com/security/helmet. Actual Behavior it should work with helmet Reproduction steps install nestjs install scalar nestjs integ...