github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/validationfile/testdata/invalid_caveated_rel.yaml (about) 1 --- 2 schema: >- 3 definition user {} 4 5 caveat some_caveat(somecondition int) { 6 somecondition == 42 7 } 8 9 definition resource { 10 relation reader: user 11 } 12 relationships: >- 13 resource:first#reader@user:tom[some_caveat] 14 15 resource:first#reader@user:sarah[some_caveat:{"somecondition": 42}] 16 assertions: 17 assertTrue: [] 18 assertFalse: [] 19 validation: null