But then I need to have the property name ("myProperty1", "myProperty2" ...) available inside that validation function. But I don't think it is available...
When I go up one step in the call stack it is still available, but I don't think it is passed to the validate function:
And then indeed I have the property name available in a validation function with two parameters:
And my old validation function with one parameter still works fine (i.e. it still gets the property value):
=> Existing validators wouldn't be broken, when you should consider to add this change to Node-RED.
And when I remove my change again, my new validator just gets called with an undefined property value:
=> To avoid that the validators (with two parameters) run into problems on older Node-RED versions (which don't pass the property name), perhaps the documentation could mention that "you should always check whether property is undefined!".
Or have I forgotten something?
It would help me a lot if you would consider to pass the property name to validators in the future ...