Skip to content

Commit b89a8a1

Browse files
committed
fix: ErrorResponseSchema를 잘못 검증하던 문제 수정
1 parent d834e3b commit b89a8a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package/pyconkr-shop/schemas/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ export const isObjectErrorResponseSchema = (
182182
R.isPlainObject(obj) &&
183183
R.isString(obj.type) &&
184184
R.isArray(obj.errors) &&
185-
obj.errors.every(() => {
185+
obj.errors.every((error) => {
186186
return (
187-
R.isPlainObject(obj) &&
188-
R.isString(obj.code) &&
189-
R.isString(obj.detail) &&
190-
(obj.attr === null || R.isString(obj.attr))
187+
R.isPlainObject(error) &&
188+
R.isString(error.code) &&
189+
R.isString(error.detail) &&
190+
(error.attr === null || R.isString(error.attr))
191191
);
192192
})
193193
);

0 commit comments

Comments
 (0)