I'd like to have an option optionally required if another parameter is not specified or vice versa.
For example, I have a sftp password parameter that is required unless I specified the local file option in which case I don't want it required.
Something like RequiredWhen(Func requiredFunc) on the fluent interface?
I'd like to have an option optionally required if another parameter is not specified or vice versa. For example, I have a sftp password parameter that is required unless I specified the local file option in which case I don't want it required.
Something like RequiredWhen(Func requiredFunc) on the fluent interface?