Skip to content

Commit

Permalink
update embed file names
Browse files Browse the repository at this point in the history
  • Loading branch information
SimoneDutto committed Jul 22, 2024
1 parent a85d537 commit 3d89f93
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/jimmtest/openfga.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ type testSetup struct {

func getAuthModelDefinition() (*sdk.AuthorizationModel, error) {
authModel := sdk.AuthorizationModel{}
err := json.Unmarshal(auth_model.AuthModelFile, &authModel)
err := json.Unmarshal(auth_model.AuthModelJSON, &authModel)
if err != nil {
return nil, err
}
Expand Down
2 changes: 1 addition & 1 deletion internal/rebac_admin/entitlements.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ func (s *EntitlementsService) ListEntitlements(ctx context.Context, params *reso

// RawEntitlements returns the list of entitlements as raw text.
func (s *EntitlementsService) RawEntitlements(ctx context.Context) (string, error) {
return string(openfgastatic.AuthModelFileDSL), nil
return string(openfgastatic.AuthModelDSL), nil
}
4 changes: 2 additions & 2 deletions openfga/auth_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

//go:embed authorisation_model.json
var AuthModelFile []byte
var AuthModelJSON []byte

//go:embed authorisation_model.fga
var AuthModelFileDSL []byte
var AuthModelDSL []byte

0 comments on commit 3d89f93

Please sign in to comment.