Closed popuguytheparrot closed 9 months ago
Example from 5 months ago, fastify-swagger changed their API If you want it to work:
and something like this:
await server.register(fastifySwagger, {
mode: "static",
specification: { document: openApiDocument }
});
await server.register(fastifySwaggerUi, {
routePrefix: "/docs"
});
with this code i got ts error and nothing render on /docs