github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/schemadsl/parser/tests/complexcaveat.zed (about) 1 definition another {} 2 3 caveat somecaveat(somecondition uint, somebool bool) { 4 somecondition == 42 && somebool || something == "hi there" && 5 ({ 6 "themap": 42 7 }).contains("whatever") 8 } 9 10 caveat anothercaveat(somemap map<string>, somelist list<int>) { 11 somelist.contains("hiya") && somemap?.foo 12 } 13 14 definition user {}