Forum Discussion

vk22's avatar
vk22
New Contributor
3 years ago

How to show Authorize button on OAS 3 swagger in javascript?

I am using this config for swagger: { routePrefix: "/documentation", exposeRoute: true, openapi: { openapi: "3.0.3", }, swagger: { info: { title: "Sample API",...
  • vk22's avatar
    3 years ago

    I was able to figure out the issue. components and security array had to be inside openapi object. I am using the above config with fastify-swagger.