https://authzed.com logo
Caveats | authzed
c

campidelli

05/05/2023, 12:21 AM
Hi there. Can anyone please show in the playground how to add the optional context for a caveat? I am trying to do this https://authzed.com/docs/reference/caveats#ip-address-checking
Anything that I type there gets erased
j

Joey

05/05/2023, 12:24 AM
it needs to be JSON
{"foo": "bar"}
c

campidelli

05/05/2023, 12:26 AM
Amazing! Thanks a lot, I couldn't find that info anywhere
j

Joey

05/05/2023, 12:26 AM
that's good feedback
c

campidelli

05/05/2023, 12:38 AM
I have created a playground for it
But something is wrong with my IP format
It complains when I run the assertion
If we fix this I can open a PR to add this link to the documentation
``could not serialize context: proto: invalid type: types.IPAddress. please report this error``
j

Joey

05/05/2023, 1:39 AM
I’ll take a look tomorrow