From eae93bee5da3de5ef42f7502a9ce2d472c44da4a Mon Sep 17 00:00:00 2001 From: Aviad Lichtenstadt Date: Mon, 4 Nov 2024 22:27:34 +0200 Subject: [PATCH] Expose additional errors on invite batch (#470) So we can see which users failed on the invite sent and which not --- descope/types.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/descope/types.go b/descope/types.go index 31c996ee..ff1dbfbb 100644 --- a/descope/types.go +++ b/descope/types.go @@ -525,8 +525,9 @@ type UsersFailedResponse struct { } type UsersBatchResponse struct { - CreatedUsers []*UserResponse `json:"createdUsers,omitempty"` - FailedUsers []*UsersFailedResponse `json:"failedUsers,omitempty"` + CreatedUsers []*UserResponse `json:"createdUsers,omitempty"` + FailedUsers []*UsersFailedResponse `json:"failedUsers,omitempty"` + AdditionalErrors map[string]string `json:"additionalErrors,omitempty"` } func (ur *UserResponse) GetCreatedTime() time.Time {