-
Notifications
You must be signed in to change notification settings - Fork 15
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
chore(docs): split Read examples in README to separate sections #31
Conversation
Edited README.md to create separate code blocks for Read Relationship Tuples example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @akj2018
You probably need to duplicate this part across all the code blocks:
response = await api_instance.read(body)
# response = ReadResponse({"tuples": [Tuple({"key": TupleKey({"user":"...","relation":"...","object":"..."}), "timestamp": datetime.fromisoformat("...") })]})
Also, looking at it now, the three above code blocks should read:
Mind doing that change too? |
…les (openfga#31) Edited README.md to create separate code blocks for Read Relationship Tuples example with following structure body = ReadRequest(...) response = await api_instance.read(body) response = ReadResponse({"tuples": [Tuple({"key": TupleKey({"user":"...","relation":"...","object":"..."}), "timestamp": datetime.fromisoformat("...") })]})
Hi @rhamzeh, thanks for letting me know. I have made the required changes in my latest commit. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @akj2018 !
Implement changes for openfga/python-sdk#32 and openfga/python-sdk#31
* fix(python-sdk): correct README Implement changes for openfga/python-sdk#32 and openfga/python-sdk#31
Description
Edited README.md to create separate code blocks for Read Relationship Tuples example.
References
OpenFGA RFC
Contributing to OpenFGA
Closes #26
Review Checklist
main