From 05a90d6153ad642a6b776bdde973322150b331f9 Mon Sep 17 00:00:00 2001 From: brendanlaschke Date: Thu, 2 May 2024 14:21:19 +0200 Subject: [PATCH] Constant api version (#5248) closes #5206 --- .../engine/core-modules/open-api/utils/base-schema.utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 d506d6fb6cf0..059f5ae291c3 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 @@ -2,6 +2,8 @@ import { OpenAPIV3_1 } from 'openapi-types'; import { computeOpenApiPath } from 'src/engine/core-modules/open-api/utils/path.utils'; +export const API_Version = 'v0.1'; + export const baseSchema = ( schemaName: 'core' | 'metadata', serverUrl: string, @@ -19,7 +21,7 @@ export const baseSchema = ( name: 'AGPL-3.0', url: 'https://github.com/twentyhq/twenty?tab=AGPL-3.0-1-ov-file#readme', }, - version: '0.2.0', + version: API_Version, }, // Testing purposes servers: [