Skip to content

Commit

Permalink
fix: reading json models & release v0.2.4 (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Jan 16, 2024
2 parents 7c31027 + 4297cde commit cfeef61
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
3 changes: 2 additions & 1 deletion internal/storetest/read-from-input.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit cfeef61

Please sign in to comment.