From 6b138528a4ca8ddd29d0dc56a7cb566a08ca9683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20C=C3=A1rdenas?= Date: Fri, 18 Aug 2023 15:30:27 -0600 Subject: [PATCH] docs: generate JSON openapi schema (#188) --- util/openapi-generator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/util/openapi-generator.ts b/util/openapi-generator.ts index 1fe9d300..b10573ed 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({