I'm building a flow that should get triggered whenever a webhook from Jira is activated. There are some elements that I'd like to use, but are optional and have the value "Null" if unassigned. Normally, to allow both a string and the null in a property, you'd write something like:
"types": ["string", "null"}
However, from what I've experienced, the event seems to only pass the values of elements that have a single type assigned to them - leaving them empty otherwise. But if I only use "string", any request with the value as null will fail - I can't use something like "minimum" either, since the element is present, just incorrectly assigned.
Is it even possible to have the event default strings with null to "", or do I have to make sure any value I care about is guaranteed to not be null?
Like I said, that doesn't work, because the element is present - the problem is that it is assigned null. So instead of
"timeZone": "Western Europe"
the webhook sends:
"timeZone": null
@cegekaJG It should be possible to edit the Schema
{
"type": "object",
"properties": {
"name": {
"type": "string",
"required": false
},
"age": {
"type": "integer",
"required": true
}
}
}
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.