Skip to content

Commit acdac16

Browse files
committed
SCALRCORE-21783 Remove token description validation [API_BRANCH]
1 parent a086d61 commit acdac16

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

access_token.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,6 @@ func (s *accessTokens) Update(ctx context.Context, accessTokenID string, options
9090
return nil, fmt.Errorf("invalid value for access token ID: '%s'", accessTokenID)
9191
}
9292

93-
if !validString(options.Description) {
94-
return nil, errors.New("value for description must be a valid string")
95-
}
96-
9793
req, err := s.client.newRequest("PATCH", fmt.Sprintf("access-tokens/%s", url.QueryEscape(accessTokenID)), &options)
9894
if err != nil {
9995
return nil, err

0 commit comments

Comments
 (0)