Rasmus Dencker
06/22/2023, 2:18 PMtype IDWrapper[T any] struct{
Inner T
ID string
}
type Key struct {
Principal IDWrapper[*client.Principal]
Resource IDWrapper[*client.Resource]
Action string
}
Charith (Cerbos)
Rasmus Dencker
06/22/2023, 2:54 PMRasmus Dencker
06/22/2023, 2:55 PMCharith (Cerbos)
Kind
in the PR. You could get access to the underlying protobuf as well if you have other requirements.Charith (Cerbos)
Rasmus Dencker
06/22/2023, 2:57 PMCharith (Cerbos)
protojson
package. BUT, they intentionally add random spaces to the output so if you're using the output as a key, it might not work as you expect.Rasmus Dencker
06/22/2023, 3:00 PMRasmus Dencker
06/22/2023, 3:01 PM