Constant api version (#5248)

closes #5206
This commit is contained in:
brendanlaschke
2024-05-02 14:21:19 +02:00
committed by GitHub
parent 9a116b08a4
commit 05a90d6153

View File

@ -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: [