diff --git a/dictation_server/src/api/odms/openapi.json b/dictation_server/src/api/odms/openapi.json index 4326ad3..b08946e 100644 --- a/dictation_server/src/api/odms/openapi.json +++ b/dictation_server/src/api/odms/openapi.json @@ -453,6 +453,16 @@ } } }, + "401": { + "description": "認証エラー", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "500": { "description": "想定外のサーバーエラー", "content": { @@ -1578,7 +1588,8 @@ "description": "音声ファイルのアップロード日時(yyyy-mm-ddThh:mm:ss.sss)" }, "fileSize": { - "type": "string" + "type": "number", + "description": "音声ファイルのファイルサイズ(Byte)" }, "priority": { "type": "string", @@ -1729,8 +1740,8 @@ "description": "音声ファイルのアップロード日時(yyyy-mm-ddThh:mm:ss.sss)" }, "fileSize": { - "type": "string", - "description": "音声ファイルのファイルサイズ" + "type": "number", + "description": "音声ファイルのファイルサイズ(Byte)" }, "priority": { "type": "string", diff --git a/dictation_server/src/features/files/files.controller.ts b/dictation_server/src/features/files/files.controller.ts index 59e64bc..ba4873d 100644 --- a/dictation_server/src/features/files/files.controller.ts +++ b/dictation_server/src/features/files/files.controller.ts @@ -41,6 +41,11 @@ export class FilesController { description: '不正なパラメータ', type: ErrorResponse, }) + @ApiResponse({ + status: HttpStatus.UNAUTHORIZED, + description: '認証エラー', + type: ErrorResponse, + }) @ApiResponse({ status: HttpStatus.INTERNAL_SERVER_ERROR, description: '想定外のサーバーエラー', diff --git a/dictation_server/src/features/files/types/types.ts b/dictation_server/src/features/files/types/types.ts index aad7373..5136d3b 100644 --- a/dictation_server/src/features/files/types/types.ts +++ b/dictation_server/src/features/files/types/types.ts @@ -62,8 +62,8 @@ export class AudioUploadFinishedRequest { description: '音声ファイルのアップロード日時(yyyy-mm-ddThh:mm:ss.sss)', }) uploadedDate: string; - @ApiProperty() - fileSize: string; + @ApiProperty({ description: '音声ファイルのファイルサイズ(Byte)' }) + fileSize: number; @ApiProperty({ description: '優先度 "00":Normal / "01":High' }) priority: string; @ApiProperty({ description: '録音形式: DSS/DS2(SP)/DS2(QP)' }) diff --git a/dictation_server/src/features/tasks/types/types.ts b/dictation_server/src/features/tasks/types/types.ts index 3f87b39..4d51d2c 100644 --- a/dictation_server/src/features/tasks/types/types.ts +++ b/dictation_server/src/features/tasks/types/types.ts @@ -69,8 +69,8 @@ export class Task { description: '音声ファイルのアップロード日時(yyyy-mm-ddThh:mm:ss.sss)', }) audioUploadedDate: string; - @ApiProperty({ description: '音声ファイルのファイルサイズ' }) - fileSize: string; + @ApiProperty({ description: '音声ファイルのファイルサイズ(Byte)' }) + fileSize: number; @ApiProperty({ description: '音声ファイルの優先度 "00":Normal / "01":High' }) priority: string; @ApiProperty({ description: '録音形式: DSS/DS2(SP)/DS2(QP)' })