Skip to content

Commit

Permalink
refactor: roles names
Browse files Browse the repository at this point in the history
  • Loading branch information
fredmaggiowski committed Sep 11, 2024
1 parent 73d719f commit da6618a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/resources/extensibility/extensionInfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ type ExtensionInfo struct {
IconName string `yaml:"iconName,omitempty" json:"iconName,omitempty"`
ActivationContexts []Context `yaml:"activationContexts" json:"activationContexts"`
Permissions []string `yaml:"permissions,omitempty" json:"permissions,omitempty"`
Roles []string `yaml:"roleIds,omitempty" json:"roleIds,omitempty"`
RoleIDs []string `yaml:"roleIds,omitempty" json:"roleIds,omitempty"`

Check failure on line 63 in internal/resources/extensibility/extensionInfo.go

View workflow job for this annotation

GitHub Actions / Lint Code

json(camel): got 'roleIds' want 'roleIDs' (tagliatelle)
Visibilities []Visibility `yaml:"visibilities,omitempty" json:"visibilities,omitempty"`
Category *Category `yaml:"category,omitempty" json:"category,omitempty"`
Menu *Menu `yaml:"menu" json:"menu,omitempty"`
Expand Down
2 changes: 1 addition & 1 deletion internal/resources/extensibility/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ type Extension struct {
IconName string `yaml:"iconName,omitempty" json:"iconName,omitempty"`
ActivationContexts []Context `yaml:"activationContexts" json:"activationContexts"`
Permissions []string `yaml:"permissions,omitempty" json:"permissions,omitempty"`
Roles []string `yaml:"roleIds,omitempty" json:"roleIds,omitempty"`
RoleIDs []string `yaml:"roleIds,omitempty" json:"roleIds,omitempty"`

Check failure on line 28 in internal/resources/extensibility/extensions.go

View workflow job for this annotation

GitHub Actions / Lint Code

json(camel): got 'roleIds' want 'roleIDs' (tagliatelle)
Category *Category `yaml:"category,omitempty" json:"category,omitempty"`
Menu Menu `yaml:"menu" json:"menu"`
}
Expand Down

0 comments on commit da6618a

Please sign in to comment.