You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When :some_param is not present and a custom validator is set; the custom validator will automatically be called, despite the optional setting. It seems the desired behavior when using optional would be to only call the custom validator when the param is present.
The text was updated successfully, but these errors were encountered:
…ional and not present
Updated validator to only run custom optional validation when the param
is present. Re-wrote validations_spec to be a little more robust.
Added section to documentation for custom validation.
When
:some_param
is not present and a custom validator is set; the custom validator will automatically be called, despite the optional setting. It seems the desired behavior when usingoptional
would be to only call the custom validator when the param is present.The text was updated successfully, but these errors were encountered: