Skip to content

Commit

Permalink
specに足りていない箇所がったので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
rami2076 committed Oct 5, 2023
1 parent 207e0b9 commit d7a287f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion specs/openApiMain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -230,4 +236,5 @@ components:
type: object
properties:
message:
type: string
type: string
default: "不適格なリクエストを検知しました"
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class EmployeeSearchControllerTest {

@Nested
@DisplayName("PK社員検索")
inner class List {
inner class Get {
@ParameterizedTest(name = "パスパラメータの番号が{0}の時、社員エラーレスポンスが返却されること")
@CsvSource(
delimiter = '|',
Expand Down

0 comments on commit d7a287f

Please sign in to comment.