github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/validationfile/testdata/loader_with_comment.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    // Some comment
    17  
    18    example/project:pied_piper#owner@example/user:milburga
    19  
    20    example/project:pied_piper#reader@example/user:tarben
    21  
    22    // Some other comment
    23  
    24    example/project:pied_piper#writer@example/user:freyja
    25  assertions:
    26    assertTrue: []
    27    assertFalse: []
    28  validation: null