diff --git a/internal/jimmtest/openfga.go b/internal/jimmtest/openfga.go index c3e9b884a..8ae656396 100644 --- a/internal/jimmtest/openfga.go +++ b/internal/jimmtest/openfga.go @@ -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 } diff --git a/internal/rebac_admin/entitlements.go b/internal/rebac_admin/entitlements.go index 92bf3fdc7..15bd18fcc 100644 --- a/internal/rebac_admin/entitlements.go +++ b/internal/rebac_admin/entitlements.go @@ -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 } diff --git a/openfga/auth_model.go b/openfga/auth_model.go index 6ae899f15..7b25e2c6e 100644 --- a/openfga/auth_model.go +++ b/openfga/auth_model.go @@ -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