Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WriteAuthorizationModel error is too verbose #149

Open
miparnisari opened this issue Sep 12, 2023 · 0 comments
Open

WriteAuthorizationModel error is too verbose #149

miparnisari opened this issue Sep 12, 2023 · 0 comments

Comments

@miparnisari
Copy link
Member

[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 for POST 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) $
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant