Skip to content

Commit 9af0890

Browse files
authored
fix: correct response type for users.list (#97
fix: correct response type for `users.list()` by renaming `user` prop to `users`.
1 parent ed5de9d commit 9af0890

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.changeset/chilly-ears-complain.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'magicbell': patch
3+
---
4+
5+
fix: correct response type for `users.list()` by renaming `user` prop to `users`.

packages/magicbell/src/schemas/users.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export const CreateUsersPayloadSchema = {
116116
export const ListUsersResponseSchema = {
117117
title: 'ListUsersResponseSchema',
118118
type: 'object',
119-
required: ['current_page', 'per_page', 'user'],
119+
required: ['current_page', 'per_page', 'users'],
120120

121121
properties: {
122122
per_page: {
@@ -131,7 +131,7 @@ export const ListUsersResponseSchema = {
131131
readOnly: true,
132132
},
133133

134-
user: {
134+
users: {
135135
type: 'array',
136136

137137
items: {

0 commit comments

Comments
 (0)