Skip to content

Commit 8b1d27a

Browse files
committed
fix: update error property
- Changed 'error' property to 'errors' as an array of objects in the API response schema
1 parent e289c97 commit 8b1d27a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/decorators/base-endpoint/base-endpoint.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function Endpoint(options: ApiEndpointOptions) {
5656
properties: {
5757
message: { type: 'string' },
5858
statusCode: { type: 'number', example: 400 },
59-
error: { type: 'string' },
59+
errors: { type: 'array', items: { type: 'object' } },
6060
},
6161
},
6262
}),

0 commit comments

Comments
 (0)