From bd25bb633d401a70aeb1c289e6688ea959a1c06a Mon Sep 17 00:00:00 2001 From: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com> Date: Mon, 2 Sep 2024 13:45:23 +0200 Subject: [PATCH] Feat: projects OpenAPI update (#8036) Make OpenApi ready for new project read-model. --- src/lib/openapi/spec/project-schema.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/lib/openapi/spec/project-schema.ts b/src/lib/openapi/spec/project-schema.ts index 117cc45be5..21d1edd55f 100644 --- a/src/lib/openapi/spec/project-schema.ts +++ b/src/lib/openapi/spec/project-schema.ts @@ -3,7 +3,7 @@ import type { FromSchema } from 'json-schema-to-ts'; export const projectSchema = { $id: '#/components/schemas/projectSchema', type: 'object', - // additionalProperties: false, // todo: re-enable when flag projectListImprovements is removed + additionalProperties: false, required: ['id', 'name'], description: 'A definition of the project used for projects listing purposes', @@ -68,6 +68,13 @@ export const projectSchema = { description: 'When this project was last updated.', 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: { type: 'string', format: 'date-time', @@ -102,6 +109,14 @@ export const projectSchema = { description: '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: { 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.',