We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d834e3b commit b89a8a1Copy full SHA for b89a8a1
package/pyconkr-shop/schemas/index.ts
@@ -182,12 +182,12 @@ export const isObjectErrorResponseSchema = (
182
R.isPlainObject(obj) &&
183
R.isString(obj.type) &&
184
R.isArray(obj.errors) &&
185
- obj.errors.every(() => {
+ obj.errors.every((error) => {
186
return (
187
- R.isPlainObject(obj) &&
188
- R.isString(obj.code) &&
189
- R.isString(obj.detail) &&
190
- (obj.attr === null || R.isString(obj.attr))
+ R.isPlainObject(error) &&
+ R.isString(error.code) &&
+ R.isString(error.detail) &&
+ (error.attr === null || R.isString(error.attr))
191
);
192
})
193
0 commit comments