Skip to content

Commit ab893a1

Browse files
Set json and yaml names for CapConfig struct (#23231)
1 parent 9c7528b commit ab893a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • deployment/cre/capabilities_registry/v2/changeset/operations/contracts

deployment/cre/capabilities_registry/v2/changeset/operations/contracts/update_don.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ type UpdateDONOutput struct {
7171

7272
// CapabilityConfig is a struct that holds a capability and its configuration
7373
type CapabilityConfig struct {
74-
Capability Capability
74+
Capability Capability `json:"capability" yaml:"capability"`
7575
// Config is the capability configuration. It will be marshalled to proto config.
7676
// It is untyped here because is has to be deserialized from JSON/YAML for any possible capability
7777
// If nil, a default config based on the capability type is used
78-
Config map[string]any
78+
Config map[string]any `json:"config" yaml:"config"`
7979
}
8080

8181
type Capability struct {

0 commit comments

Comments
 (0)