Hi,
Is anyone knows how to validate if input variable does not exist in the DMN validation.
{“attr1”: “test”,“attr2”: [{“subattr”:“test”}]}
in the JSON, how to check if “attr1” is missing?
I am using javascript lang for the expression
Hi,
Is anyone knows how to validate if input variable does not exist in the DMN validation.
{“attr1”: “test”,“attr2”: [{“subattr”:“test”}]}
in the JSON, how to check if “attr1” is missing?
I am using javascript lang for the expression
I think you can try the
yourJSONObject.hasOwnProperty('attr1')
method. I’m not entirely sure, I just may try it myself
Joe