From 6aa8d7fa0999598af1f9b32924956194fd08c628 Mon Sep 17 00:00:00 2001 From: andreas-unleash <104830839+andreas-unleash@users.noreply.github.com> Date: Thu, 23 Jun 2022 08:53:25 +0300 Subject: [PATCH] update archivedAt to date-time --- src/lib/openapi/spec/feature-schema.ts | 2 +- .../openapi/__snapshots__/openapi.e2e.test.ts.snap | 13 +++++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/lib/openapi/spec/feature-schema.ts b/src/lib/openapi/spec/feature-schema.ts index d584a7779f..2b3d489a8f 100644 --- a/src/lib/openapi/spec/feature-schema.ts +++ b/src/lib/openapi/spec/feature-schema.ts @@ -43,7 +43,7 @@ export const featureSchema = { }, archivedAt: { type: 'string', - format: 'date', + format: 'date-time', nullable: true, }, lastSeenAt: { diff --git a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap index 2d96a6d4a1..5e390572ec 100644 --- a/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap +++ b/src/test/e2e/api/openapi/__snapshots__/openapi.e2e.test.ts.snap @@ -24,12 +24,12 @@ exports[`should serve the OpenAPI UI 1`] = ` background: #fafafa; } - + - + - +
@@ -41,7 +41,7 @@ exports[`should serve the OpenAPI UI 1`] = ` }) } - + " @@ -632,6 +632,11 @@ Object { "archived": Object { "type": "boolean", }, + "archivedAt": Object { + "format": "date-time", + "nullable": true, + "type": "string", + }, "createdAt": Object { "format": "date-time", "nullable": true,