Hi there. Can anyone please show in the playground...
# spicedb
c
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
it needs to be JSON
{"foo": "bar"}
c
Amazing! Thanks a lot, I couldn't find that info anywhere
j
that's good feedback
c
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
I’ll take a look tomorrow
10 Views