Creates a custom validator attribute. Note that due to a linker bug func cannot be a lambda.
// validates only if the value is equals to `test`, case insensitive bool validateExp(string value) { import std.string : toLower; return value.toLower() == "test"; } alias Test = CustomValidation!validateExp; ... struct Form { @Test string test; }
See Implementation
Creates a custom validator attribute. Note that due to a linker bug func cannot be a lambda.