fix: add yaml tags to models so we can unmarshal camelCase (#148)

This commit is contained in:
Daniel Moran
2021-06-28 10:18:41 -04:00
committed by GitHub
parent a1921e1e59
commit 7ea63d6a96
153 changed files with 1142 additions and 678 deletions

View File

@ -17,22 +17,22 @@ import (
// AuthorizationAllOf struct for AuthorizationAllOf
type AuthorizationAllOf struct {
CreatedAt *time.Time `json:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty"`
CreatedAt *time.Time `json:"createdAt,omitempty" yaml:"createdAt,omitempty"`
UpdatedAt *time.Time `json:"updatedAt,omitempty" yaml:"updatedAt,omitempty"`
// ID of org that authorization is scoped to.
OrgID *string `json:"orgID,omitempty"`
OrgID *string `json:"orgID,omitempty" yaml:"orgID,omitempty"`
// List of permissions for an auth. An auth must have at least one Permission.
Permissions *[]Permission `json:"permissions,omitempty"`
Id *string `json:"id,omitempty"`
Permissions *[]Permission `json:"permissions,omitempty" yaml:"permissions,omitempty"`
Id *string `json:"id,omitempty" yaml:"id,omitempty"`
// Passed via the Authorization Header and Token Authentication type.
Token *string `json:"token,omitempty"`
Token *string `json:"token,omitempty" yaml:"token,omitempty"`
// ID of user that created and owns the token.
UserID *string `json:"userID,omitempty"`
UserID *string `json:"userID,omitempty" yaml:"userID,omitempty"`
// Name of user that created and owns the token.
User *string `json:"user,omitempty"`
User *string `json:"user,omitempty" yaml:"user,omitempty"`
// Name of the org token is scoped to.
Org *string `json:"org,omitempty"`
Links *AuthorizationAllOfLinks `json:"links,omitempty"`
Org *string `json:"org,omitempty" yaml:"org,omitempty"`
Links *AuthorizationAllOfLinks `json:"links,omitempty" yaml:"links,omitempty"`
}
// NewAuthorizationAllOf instantiates a new AuthorizationAllOf object