From 94136d953ea1e88f6c127a78933c9e737b0d001a Mon Sep 17 00:00:00 2001 From: martmull Date: Fri, 20 Dec 2024 09:56:22 +0100 Subject: [PATCH] 8749 invalid openapi schema (#9156) --- .../core-modules/open-api/utils/base-schema.utils.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/twenty-server/src/engine/core-modules/open-api/utils/base-schema.utils.ts b/packages/twenty-server/src/engine/core-modules/open-api/utils/base-schema.utils.ts index 059f5ae291c3..1cb8ff05e21e 100644 --- a/packages/twenty-server/src/engine/core-modules/open-api/utils/base-schema.utils.ts +++ b/packages/twenty-server/src/engine/core-modules/open-api/utils/base-schema.utils.ts @@ -9,17 +9,18 @@ export const baseSchema = ( serverUrl: string, ): OpenAPIV3_1.Document => { return { - openapi: '3.0.3', + openapi: '3.1.1', info: { title: 'Twenty Api', - description: `This is a **Twenty REST/API** playground based on the **OpenAPI 3.0 specification**.`, - termsOfService: 'https://github.com/twentyhq/twenty?tab=coc-ov-file', + description: `This is a **Twenty REST/API** playground based on the **OpenAPI 3.1 specification**.`, + termsOfService: + 'https://github.com/twentyhq/twenty?tab=coc-ov-file#readme', contact: { email: 'felix@twenty.com', }, license: { name: 'AGPL-3.0', - url: 'https://github.com/twentyhq/twenty?tab=AGPL-3.0-1-ov-file#readme', + url: 'https://github.com/twentyhq/twenty?tab=License-1-ov-file#readme', }, version: API_Version, },