I might have asked this before, but has anyone use...
# help
r
I might have asked this before, but has anyone used the Cerbos repo to generate policies (and tests)? I tried using the strucs from the client, but since they're following the builder pattern they don't have the fields exported:
c
If you want to generate policies, you'd need to use the structs generated by protobufs. We do that for internal tests: https://github.com/cerbos/cerbos/blob/44c7afaf7c7211cc869b357dbf385e2e91575115/internal/test/policy.go#L130