github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/validationfile/testdata/initial_schema_and_rels.yaml (about)

     1  ---
     2  schema: >-
     3    definition example/user {}
     4  
     5  
     6    definition example/project {
     7        relation reader: example/user
     8        relation writer: example/user
     9        relation owner: example/user
    10  
    11        permission read = reader + write
    12        permission write = writer + admin
    13        permission admin = owner
    14    }
    15  relationships: >-
    16    example/project:pied_piper#owner@example/user:milburga
    17  
    18    example/project:pied_piper#reader@example/user:tarben
    19  
    20    example/project:pied_piper#writer@example/user:freyja
    21  assertions:
    22    assertTrue: []
    23    assertFalse: []
    24  validation: null