8749 invalid openapi schema (#9156)
This commit is contained in:
@ -9,17 +9,18 @@ export const baseSchema = (
|
|||||||
serverUrl: string,
|
serverUrl: string,
|
||||||
): OpenAPIV3_1.Document => {
|
): OpenAPIV3_1.Document => {
|
||||||
return {
|
return {
|
||||||
openapi: '3.0.3',
|
openapi: '3.1.1',
|
||||||
info: {
|
info: {
|
||||||
title: 'Twenty Api',
|
title: 'Twenty Api',
|
||||||
description: `This is a **Twenty REST/API** playground based on the **OpenAPI 3.0 specification**.`,
|
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',
|
termsOfService:
|
||||||
|
'https://github.com/twentyhq/twenty?tab=coc-ov-file#readme',
|
||||||
contact: {
|
contact: {
|
||||||
email: 'felix@twenty.com',
|
email: 'felix@twenty.com',
|
||||||
},
|
},
|
||||||
license: {
|
license: {
|
||||||
name: 'AGPL-3.0',
|
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,
|
version: API_Version,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user