Skip to content

Commit 8cbacaa

Browse files
feat: roleIds support in e11y cmd (#218)
Co-authored-by: Stefano Del Tufo <[email protected]>
1 parent 79d7995 commit 8cbacaa

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414

1515
### Changed
1616

17+
- updated `extension apply` command to support new request body schema
1718
- deprecate `deploy` command
1819
- update go version to 1.22.5
1920
- `marketplace list-versions` command removed from alpha build

internal/resources/extensibility/extensionInfo.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,9 @@ type ExtensionInfo struct {
6363
Visibilities []Visibility `yaml:"visibilities,omitempty" json:"visibilities,omitempty"`
6464
Category *Category `yaml:"category,omitempty" json:"category,omitempty"`
6565
Menu *Menu `yaml:"menu" json:"menu,omitempty"`
66+
//nolint:tagliatelle
67+
// tagliatelle requires the json tag to be roleIDs or the field to be
68+
// roleIds, we can't change the tag, but using roleIds breaks other
69+
// lint rules for field names
70+
RoleIDs []string `yaml:"roleIds,omitempty" json:"roleIds,omitempty"`
6671
}

internal/resources/extensibility/extensions.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ type Extension struct {
2727
Permissions []string `yaml:"permissions,omitempty" json:"permissions,omitempty"`
2828
Category *Category `yaml:"category,omitempty" json:"category,omitempty"`
2929
Menu Menu `yaml:"menu" json:"menu"`
30+
//nolint:tagliatelle
31+
// tagliatelle requires the json tag to be roleIDs or the field to be
32+
// roleIds, we can't change the tag, but using roleIds breaks other
33+
// lint rules for field names
34+
RoleIDs []string `yaml:"roleIds,omitempty" json:"roleIds,omitempty"`
3035
}
3136

3237
type Icon struct {

0 commit comments

Comments
 (0)