From 5f2bbea6ded55e804dd82551e0506f3dc781d16f Mon Sep 17 00:00:00 2001 From: tamaina Date: Mon, 15 May 2023 17:53:51 +0900 Subject: [PATCH] wip --- packages/misskey-js/src/schemas/announcement.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/misskey-js/src/schemas/announcement.ts b/packages/misskey-js/src/schemas/announcement.ts index eb8b945b5..63b5dc4c8 100644 --- a/packages/misskey-js/src/schemas/announcement.ts +++ b/packages/misskey-js/src/schemas/announcement.ts @@ -11,8 +11,12 @@ export const packedAnnouncementSchema = { format: 'date-time', }, updatedAt: { - type: 'string', - format: 'date-time', + oneOf: [{ + type: 'string', + format: 'date-time', + }, { + type: 'null', + }], }, title: { type: 'string',