Replies: 1 comment
-
Hi @jdicami can you share a screenshot of where you found this json? I couldn't find it on the linked page. If it's copied from there verbatim then that would be an issue in the docs. The JSON provided is missing the metadata needed that indicates what the type of the users related to document reader are. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have built openfga from source (latest main branch) so that I can use it as a library. I am encountering an issue when creating a new authorization model using the exact same definition as in the docs here https://openfga.dev/docs/getting-started/configure-model
When I call WriteAuthorizationModel from the server instance, it fails with "the definition of relation 'reader' in object type 'document' is invalid: invalid userset rewrite definition."
I have added the following print statements
which prints out
respectively.
Any idea why
isUsersetRewriteValid
is failing.Beta Was this translation helpful? Give feedback.
All reactions