1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-06 01:15:28 +02:00

Feat: projects OpenAPI update (#8036)

Make OpenApi ready for new project read-model.
This commit is contained in:
Tymoteusz Czech 2024-09-02 13:45:23 +02:00 committed by GitHub
parent d7b1e70e68
commit bd25bb633d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,7 +3,7 @@ import type { FromSchema } from 'json-schema-to-ts';
export const projectSchema = { export const projectSchema = {
$id: '#/components/schemas/projectSchema', $id: '#/components/schemas/projectSchema',
type: 'object', type: 'object',
// additionalProperties: false, // todo: re-enable when flag projectListImprovements is removed additionalProperties: false,
required: ['id', 'name'], required: ['id', 'name'],
description: description:
'A definition of the project used for projects listing purposes', 'A definition of the project used for projects listing purposes',
@ -68,6 +68,13 @@ export const projectSchema = {
description: 'When this project was last updated.', description: 'When this project was last updated.',
example: '2023-07-28T12:12:28Z', example: '2023-07-28T12:12:28Z',
}, },
lastUpdatedAt: {
type: 'string',
format: 'date-time',
nullable: true,
description: 'When this project was last updated.',
example: '2023-07-28T12:12:28Z',
},
archivedAt: { archivedAt: {
type: 'string', type: 'string',
format: 'date-time', format: 'date-time',
@ -102,6 +109,14 @@ export const projectSchema = {
description: description:
'The average time from when a feature was created to when it was enabled in the "production" environment during the current window', 'The average time from when a feature was created to when it was enabled in the "production" environment during the current window',
}, },
lastReportedFlagUsage: {
type: 'string',
format: 'date-time',
nullable: true,
description:
'Across all flags in your project this is the last time usage metrics where reported from connected applications.',
example: '2023-07-28T12:12:28Z',
},
owners: { owners: {
description: description:
'The users and/or groups that have the "owner" role in this project. If no such users or groups exist, the list will contain the "system" owner instead.', 'The users and/or groups that have the "owner" role in this project. If no such users or groups exist, the list will contain the "system" owner instead.',