From 279f66ffe4fa29dec60e0c2451e320514e360b1c Mon Sep 17 00:00:00 2001 From: chavacava Date: Fri, 25 Oct 2024 08:24:52 -0300 Subject: [PATCH 1/2] fix tags of Faults struct Signed-off-by: chavacava --- chaoscenter/graphql/server/pkg/chaoshub/handler/types.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go b/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go index f44a4ccfc51..b2c1130e824 100644 --- a/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go +++ b/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go @@ -20,9 +20,9 @@ type Link struct { type Faults struct { Name string `yaml:"name" json:"name"` - DisplayName string `json:"displayName" json:"displayName"` + DisplayName string `yaml:"displayName" json:"displayName"` Description string `yaml:"description" json:"description"` - Plan []string `json:"plan" json:"plan"` + Plan []string `yaml:"plan" json:"plan"` } type Metadata struct { From 43cad5d5d3a0132bf9c9539507052a1e8c778ebe Mon Sep 17 00:00:00 2001 From: chavacava Date: Fri, 25 Oct 2024 08:30:55 -0300 Subject: [PATCH 2/2] fix tag of field in Spec struct Signed-off-by: chavacava --- chaoscenter/graphql/server/pkg/chaoshub/handler/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go b/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go index b2c1130e824..8bc5ccd4545 100644 --- a/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go +++ b/chaoscenter/graphql/server/pkg/chaoshub/handler/types.go @@ -43,7 +43,7 @@ type Annotation struct { type Spec struct { DisplayName string `yaml:"displayName" json:"displayName"` CategoryDescription string `yaml:"categoryDescription" json:"categoryDescription"` - Plan []string `json:"plan" json:"plan"` + Plan []string `yaml:"plan" json:"plan"` Keywords []string `yaml:"keywords" json:"keywords"` Maturity string `yaml:"maturity" json:"maturity,omitempty"` Maintainers []Maintainer `yaml:"maintainers" json:"maintainers,omitempty"`