You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[12/09/23 10:06:31] ~/GitHub/cli (main) $ cat /Users/mparnisari/Desktop/demo/model.fga
model
schema 1.1
type user
type group
relations
define member: [user]
type folder
relations
define parent: [folder]
define viewer: [user,user:*,group#member] or viewer from parent
type document
relations
define parent: [folder2]
define viewer: [user,user:*,group#member] or viewer from parent%
[12/09/23 10:07:27] ~/GitHub/cli (main) $ ./dist/fga model write --store-id 01HA35BW7NGWXK9490E0ES39QZ --file /Users/mparnisari/Desktop/demo/model.fga
Error: failed to write model due to WriteAuthorizationModel validation error forPOST WriteAuthorizationModel with body {"code":"invalid_authorization_model","message":"the relation type 'folder2' on 'parent'in object type'document' is not valid"} with error code invalid_authorization_model error message: the relation type 'folder2' on 'parent' in object type 'document' is not valid[12/09/23 10:07:29] ~/GitHub/cli (main) $
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: