From 176051e7dd2cefcbf98db64274cc0ab52da304b9 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Fri, 22 Mar 2024 08:35:34 -0700 Subject: [PATCH 1/4] chore: upgrade from OpenAPI 3.0 to OpenAPI 3.1 --- src/runtime/routes/openapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/routes/openapi.ts b/src/runtime/routes/openapi.ts index 307d6557d3..ff1eaf20c3 100644 --- a/src/runtime/routes/openapi.ts +++ b/src/runtime/routes/openapi.ts @@ -17,7 +17,7 @@ export default eventHandler((event) => { const url = joinURL(getRequestURL(event).origin, base); return { - openapi: "3.0.0", + openapi: "3.1.0", info: { title: "Nitro Server Routes", version: null, From 49799e5d86a815852afbab096f0933232e6c4622 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Fri, 22 Mar 2024 08:35:57 -0700 Subject: [PATCH 2/4] fix: openapi server url always says local --- src/runtime/routes/openapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/routes/openapi.ts b/src/runtime/routes/openapi.ts index ff1eaf20c3..621a223ffd 100644 --- a/src/runtime/routes/openapi.ts +++ b/src/runtime/routes/openapi.ts @@ -25,7 +25,7 @@ export default eventHandler((event) => { servers: [ { url, - description: "Local Development Server", + description: null, variables: {}, }, ], From 5da9cf4dd0fd5e30c44bfdbb4bb74a9b809ddb01 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Fri, 22 Mar 2024 09:18:34 -0700 Subject: [PATCH 3/4] chore: drop schemes --- src/runtime/routes/openapi.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/runtime/routes/openapi.ts b/src/runtime/routes/openapi.ts index 621a223ffd..992898fd2f 100644 --- a/src/runtime/routes/openapi.ts +++ b/src/runtime/routes/openapi.ts @@ -29,7 +29,6 @@ export default eventHandler((event) => { variables: {}, }, ], - schemes: ["http"], paths: getPaths(), }; }); From 7f0c08d0e58e2689daa2eb722825d40572483f94 Mon Sep 17 00:00:00 2001 From: Hans Pagel Date: Fri, 22 Mar 2024 12:22:48 -0700 Subject: [PATCH 4/4] chore: add url description again --- src/runtime/routes/openapi.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/routes/openapi.ts b/src/runtime/routes/openapi.ts index 992898fd2f..cd0545d637 100644 --- a/src/runtime/routes/openapi.ts +++ b/src/runtime/routes/openapi.ts @@ -25,7 +25,7 @@ export default eventHandler((event) => { servers: [ { url, - description: null, + description: "Local Development Server", variables: {}, }, ],