diff --git a/util/openapi-generator.ts b/util/openapi-generator.ts index 1c0570d8..34da066e 100644 --- a/util/openapi-generator.ts +++ b/util/openapi-generator.ts @@ -20,6 +20,7 @@ export const ApiGenerator: FastifyPluginAsync< mkdirSync('./tmp'); } writeFileSync('./tmp/openapi.yaml', fastify.swagger({ yaml: true })); + writeFileSync('./tmp/openapi.json', JSON.stringify(fastify.swagger(), null, 2)); }; const fastify = Fastify({