Custom Rules Not Adding #2677
Vishwas-verma
started this conversation in
General
Replies: 1 comment 2 replies
-
Update your contracts/validator.ts to: declare module '@ioc:Adonis/Core/Validator' {
import { Rule } from '@ioc:Adonis/Core/Validator'
export interface Rules {
password(): Rule
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello Geeks,
I have been stuck with custom rules for my password validation , i am not able to figure out why its not adding to rules.
Here is my Custom Rule for password file
How I defined in contract -
Schema-
Error -
@thetutlage
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions