diff --git a/CHANGELOG.md b/CHANGELOG.md index b7a93e3..4aa0379 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## v0.2.4 + +### [0.2.4](https://github.com/openfga/cli/compare/v0.2.3...v0.2.4) (2024-01-16) + +Fixed: +- Fixed support for reading json models (#228) + + ## v0.2.3 ### [0.2.3](https://github.com/openfga/cli/compare/v0.2.2...v0.2.3) (2024-01-11) diff --git a/internal/storetest/read-from-input.go b/internal/storetest/read-from-input.go index e70fa4e..02953c1 100644 --- a/internal/storetest/read-from-input.go +++ b/internal/storetest/read-from-input.go @@ -44,7 +44,8 @@ func ReadFromFile(fileName string, basePath string) (authorizationmodel.ModelFor return format, nil, fmt.Errorf("failed to unmarshal file %s due to %w", fileName, err) } - if format, err := storeData.LoadModel(basePath); err != nil { + format, err = storeData.LoadModel(basePath) + if err != nil { return format, nil, err }