Skip to content

Commit

Permalink
add json tags to vs gateway pool display (#201)
Browse files Browse the repository at this point in the history
* add json tags for consistency

* changelog

* Update internal/commands/vaultsecrets/gatewaypools/displayer.go

Co-authored-by: Nick Cabatoff <[email protected]>

---------

Co-authored-by: Nick Cabatoff <[email protected]>
  • Loading branch information
dhuckins and ncabatoff authored Dec 6, 2024
1 parent 5f888c3 commit 24538d9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .changelog/201.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
vault-secrets: corrected json output for gateways, GatewayPool -> gateway_pool
```
8 changes: 4 additions & 4 deletions internal/commands/vaultsecrets/gatewaypools/displayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ import (
)

type gatewayPoolWithIntegrations struct {
GatewayPool *preview_models.Secrets20231128GatewayPool
Integrations []string
GatewayPool *preview_models.Secrets20231128GatewayPool `json:"gateway_pool"`
Integrations []string `json:"integrations,omitempty"`
}

type gatewayPoolWithOauth struct {
GatewayPool *preview_models.Secrets20231128GatewayPool
Oauth *auth.OauthConfig
GatewayPool *preview_models.Secrets20231128GatewayPool `json:"gateway_pool"`
Oauth *auth.OauthConfig `json:"oauth,omitempty"`
}

type displayer struct {
Expand Down

0 comments on commit 24538d9

Please sign in to comment.