Skip to content

Commit

Permalink
fix: Unmarshal json with lowercase at resource, datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
Geun-Oh committed Oct 24, 2024
1 parent 13f822c commit 19e017a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 19e017a

Please sign in to comment.