Skip to content

Commit 41278b2

Browse files
committed
fix: add warning field to secrets API response
1 parent dafbc84 commit 41278b2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cmd/onecli/secrets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,3 +175,4 @@ func (c *SecretsDeleteCmd) Run(out *output.Writer) error {
175175
}
176176
return out.Write(map[string]string{"status": "deleted", "id": c.ID})
177177
}
178+

internal/api/secrets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ type Secret struct {
1717
CreatedAt string `json:"createdAt"`
1818
TypeLabel string `json:"typeLabel,omitempty"`
1919
Preview string `json:"preview,omitempty"`
20+
Warning string `json:"warning,omitempty"`
2021
}
2122

2223
// InjectionConfig describes how a secret is injected into requests.

0 commit comments

Comments
 (0)