You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will be really useful if we could parse JSON strings in CEL interceptors, when we get a payload containing a JSON string field.
Actual Behavior
When my EventListener receives deployment webhooks from GitHub, that JSON object contains a payload field that's a JSON string (not sure why GitHub does this 😓). Example:
I would ideally like to do something like this in my interceptor body.deployment.payload.hello == 'world' , but since payload isn't treated as an object, I have to do body.deployment.payload == '{"hello": "world"}' which isn't great once i have a larger payload field.
Steps to Reproduce the Problem
Send the above webhook payload to an EventListener containing a field with a JSON string
Parse the body.deployment.payload.hello == 'world'
EventListener doesn't evaluate the above statement to true
Additional Info
The text was updated successfully, but these errors were encountered:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Expected Behavior
It will be really useful if we could parse JSON strings in CEL interceptors, when we get a payload containing a JSON string field.
Actual Behavior
When my EventListener receives
deployment
webhooks from GitHub, that JSON object contains a payload field that's a JSON string (not sure why GitHub does this 😓). Example:I would ideally like to do something like this in my interceptor
body.deployment.payload.hello == 'world'
, but since payload isn't treated as an object, I have to dobody.deployment.payload == '{"hello": "world"}'
which isn't great once i have a larger payload field.Steps to Reproduce the Problem
body.deployment.payload.hello == 'world'
Additional Info
The text was updated successfully, but these errors were encountered: