From b881a17c2f05f151be4719571999a4ed13ab13bc Mon Sep 17 00:00:00 2001 From: zyoshoka <107108195+zyoshoka@users.noreply.github.com> Date: Fri, 18 Apr 2025 23:24:38 +0900 Subject: [PATCH] fix(backend): correct invalid JSON schema --- .../src/models/json-schema/mahjong-room.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/backend/src/models/json-schema/mahjong-room.ts b/packages/backend/src/models/json-schema/mahjong-room.ts index d6e4e517dd..1627ee5728 100644 --- a/packages/backend/src/models/json-schema/mahjong-room.ts +++ b/packages/backend/src/models/json-schema/mahjong-room.ts @@ -36,42 +36,42 @@ export const packedMahjongRoomDetailedSchema = { }, user1Id: { type: 'string', - optional: false, nullable: null, + optional: false, nullable: false, format: 'id', }, user2Id: { type: 'string', - optional: false, nullable: null, + optional: false, nullable: true, format: 'id', }, user3Id: { type: 'string', - optional: false, nullable: null, + optional: false, nullable: true, format: 'id', }, user4Id: { type: 'string', - optional: false, nullable: null, + optional: false, nullable: true, format: 'id', }, user1: { type: 'object', - optional: false, nullable: null, + optional: false, nullable: true, ref: 'User', }, user2: { type: 'object', - optional: false, nullable: null, + optional: false, nullable: true, ref: 'User', }, user3: { type: 'object', - optional: false, nullable: null, + optional: false, nullable: true, ref: 'User', }, user4: { type: 'object', - optional: false, nullable: null, + optional: false, nullable: true, ref: 'User', }, user1Ai: {