diff --git a/dictation_server/src/api/odms/openapi.json b/dictation_server/src/api/odms/openapi.json index 03b186e..c5612fa 100644 --- a/dictation_server/src/api/odms/openapi.json +++ b/dictation_server/src/api/odms/openapi.json @@ -3107,6 +3107,7 @@ "worktypeId": { "type": "string", "minLength": 1, + "maxLength": 255, "description": "WorktypeID" }, "description": { "type": "string", "description": "Worktypeの説明" } @@ -3156,7 +3157,6 @@ "PostWorktypeOptionItem": { "type": "object", "properties": { - "id": { "type": "number" }, "itemLabel": { "type": "string", "maxLength": 16 }, "defaultValueType": { "type": "string", @@ -3165,7 +3165,7 @@ }, "initialValue": { "type": "string", "maxLength": 20 } }, - "required": ["id", "itemLabel", "defaultValueType", "initialValue"] + "required": ["itemLabel", "defaultValueType", "initialValue"] }, "UpdateOptionItemsRequest": { "type": "object", @@ -3251,12 +3251,7 @@ "description": "セカンダリ管理者ID" } }, - "required": [ - "parentAccountId", - "delegationPermission", - "primaryAdminUserId", - "secondryAdminUserId" - ] + "required": ["delegationPermission"] }, "UpdateAccountInfoResponse": { "type": "object", "properties": {} }, "ConfirmRequest": { diff --git a/dictation_server/src/features/accounts/types/types.ts b/dictation_server/src/features/accounts/types/types.ts index 81fccfb..a258533 100644 --- a/dictation_server/src/features/accounts/types/types.ts +++ b/dictation_server/src/features/accounts/types/types.ts @@ -523,16 +523,17 @@ export type PartnerInfoFromDb = { }; export class UpdateAccountInfoRequest { - @ApiProperty({ description: '親アカウントのID' }) - parentAccountId: number; + @ApiProperty({ description: '親アカウントのID', required: false }) + @IsOptional() + parentAccountId?: number | undefined; @ApiProperty({ description: '代行操作許可' }) delegationPermission: boolean; - @ApiProperty({ description: 'プライマリ管理者ID' }) + @ApiProperty({ description: 'プライマリ管理者ID', required: false }) @IsOptional() - primaryAdminUserId?: number; - @ApiProperty({ description: 'セカンダリ管理者ID' }) + primaryAdminUserId?: number | undefined; + @ApiProperty({ description: 'セカンダリ管理者ID', required: false }) @IsOptional() - secondryAdminUserId?: number; + secondryAdminUserId?: number | undefined; } export class UpdateAccountInfoResponse {}