Skip to content

Commit

Permalink
SCALRCORE-21783 Remove token description validation [API_BRANCH]
Browse files Browse the repository at this point in the history
  • Loading branch information
petroprotsakh committed Jan 13, 2023
1 parent a086d61 commit acdac16
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions access_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,6 @@ func (s *accessTokens) Update(ctx context.Context, accessTokenID string, options
return nil, fmt.Errorf("invalid value for access token ID: '%s'", accessTokenID)
}

if !validString(options.Description) {
return nil, errors.New("value for description must be a valid string")
}

req, err := s.client.newRequest("PATCH", fmt.Sprintf("access-tokens/%s", url.QueryEscape(accessTokenID)), &options)
if err != nil {
return nil, err
Expand Down

0 comments on commit acdac16

Please sign in to comment.