Since we only allow a single tuple to be written of the base PK (object, relation, user), the deletes field makes more sense to be normalized to an array of tuples without a condition. The optional condition has no usage for the deletions.
[x] I have added documentation for new/changed functionality in this PR or in a PR to openfga.dev [Provide a link to any relevant PRs in the references section above]
[x] The correct base branch is being used, if not main
[x] I have added tests to validate that the change in functionality is working as expected
Description
Since we only allow a single tuple to be written of the base PK
(object, relation, user)
, thedeletes
field makes more sense to be normalized to an array of tuples without a condition. The optional condition has no usage for the deletions.References
Review Checklist
main