https://authzed.com logo
#spicedb
Title
# spicedb
b

Bryan

03/01/2022, 4:23 PM
The mistake I was making was not formatting the relationship tuples correctly underneath the
relationships
property. What I was initially doing was
Copy code
yaml
relationships: >-
  document:doc1#owner@user:user1
  document:doc1#reader@user:user2
  document:doc1#reader@user:user3
I should have been adding a blank line between each tuple:
Copy code
yaml
relationships: >-
  document:doc1#owner@user:user1

  document:doc1#reader@user:user2

  document:doc1#reader@user:user3
Doing it the first way was causing
zed
to read the entire block of text as a single token, which caused
bufio.Scanner
to fail.