diff --git a/specs/openApiMain.yaml b/specs/openApiMain.yaml index a052e63..37f8f9f 100644 --- a/specs/openApiMain.yaml +++ b/specs/openApiMain.yaml @@ -89,6 +89,12 @@ paths: application/json: schema: $ref: '#/components/schemas/EmployeeServiceErrorResponse' + '410': + description: 更新対象の社員の番号が該当なし + content: + application/json: + schema: + $ref: '#/components/schemas/EmployeeServiceErrorResponse' /v1/employee/{employeeNumber}: delete: @@ -230,4 +236,5 @@ components: type: object properties: message: - type: string \ No newline at end of file + type: string + default: "不適格なリクエストを検知しました" diff --git a/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/EmployeeSearchControllerTest.kt b/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/EmployeeSearchControllerTest.kt index 1b45a80..29a38e6 100644 --- a/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/EmployeeSearchControllerTest.kt +++ b/src/test/kotlin/com/example/kotlinonspringboot/presentation/controller/EmployeeSearchControllerTest.kt @@ -28,7 +28,7 @@ class EmployeeSearchControllerTest { @Nested @DisplayName("PK社員検索") - inner class List { + inner class Get { @ParameterizedTest(name = "パスパラメータの番号が{0}の時、社員エラーレスポンスが返却されること") @CsvSource( delimiter = '|',