From 5c37562728e322b9b7669a3438f3cd2a81e61ada Mon Sep 17 00:00:00 2001 From: Oliver Eyton-Williams Date: Tue, 22 Oct 2024 11:15:19 +0200 Subject: [PATCH] fix(api): specify openapi version (#56781) --- api/src/app.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/app.ts b/api/src/app.ts index 9e56ab6ae83..fec71629751 100644 --- a/api/src/app.ts +++ b/api/src/app.ts @@ -106,6 +106,7 @@ export const build = async ( if (FCC_ENABLE_SWAGGER_UI) { void fastify.register(fastifySwagger, { openapi: { + openapi: '3.1.0', info: { title: 'freeCodeCamp API', version: '1.0.0' // API version