How to create operation with optional parameters


We are creating some custom operations where we want to use “unset” as the default value, and only apply a setting in the transformation step if the user has set it to a value. If we leave the parameter unset then we get a validation error in the front end (even when we override validateParams), and if we setDefault(param, null) then NullPointerExceptions are thrown.

What is the correct way of allowing unset parameters be considered valid?