Bryan
12/09/2021, 3:50 PM// my comment
) are added to the Test Relationships in the playground, exporting that playground results in an invalid yaml file. Here is an example playground: https://play.authzed.com/s/Zbshi3GVS9Fc/schema. It generates the following yaml:
yaml
schema: >-
definition github/user {}
definition github/project {
relation reader: github/user
relation writer: github/user
relation owner: github/user
permission read = reader + writer
permission write = writer + owner
permission admin = owner
}
relationships: >-
// Add users to project
github/project:pied_piper#owner@github/user:milburga
github/project:pied_piper#reader@github/user:tarben
github/project:pied_piper#writer@github/user:freyja
assertions:
assertTrue: []
assertFalse: []
validation: null
When serving SpiceDB locally with this config, zed schema read
fails with this error:
> Error: rpc error: code = Unknown desc = unable to initialize upstream: failed to load config files: Error parsing relationship #0: // Add users to project