From 19e017ad5a4956eec9b04a9a3f2b5bc31d96fb7a Mon Sep 17 00:00:00 2001 From: Geun-Oh Date: Thu, 24 Oct 2024 16:08:20 +0900 Subject: [PATCH] fix: Unmarshal json with lowercase at resource, datasource --- internal/cmd/generate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cmd/generate.go b/internal/cmd/generate.go index 613c6fd..4ea8ccf 100644 --- a/internal/cmd/generate.go +++ b/internal/cmd/generate.go @@ -32,8 +32,8 @@ type GenerateCommand struct { type SpecificationWithSDK struct { spec.Specification - Resources []mapper.ResourceWithSDK - DataSources []mapper.DataSourceWithSDK + Resources []mapper.ResourceWithSDK `json:"resources"` + DataSources []mapper.DataSourceWithSDK `json:"datasources"` } func (cmd *GenerateCommand) Flags() *flag.FlagSet {