Skip to content

Commit

Permalink
add 'omitempty' to APIToken 'name' and 'policies' fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinschoonover committed Jan 2, 2022
1 parent bd861b7 commit 77936e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
// APIToken is the full API token.
type APIToken struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Name string `json:"name,omitempty"`
Status string `json:"status,omitempty"`
IssuedOn *time.Time `json:"issued_on,omitempty"`
ModifiedOn *time.Time `json:"modified_on,omitempty"`
NotBefore *time.Time `json:"not_before,omitempty"`
ExpiresOn *time.Time `json:"expires_on,omitempty"`
Policies []APITokenPolicies `json:"policies"`
Policies []APITokenPolicies `json:"policies,omitempty"`
Condition *APITokenCondition `json:"condition,omitempty"`
Value string `json:"value,omitempty"`
}
Expand Down

0 comments on commit 77936e8

Please sign in to comment.