Closed ktn05 closed 1 year ago
Hi,
schema,
name: { type: 'string', pattern: '^[A-Za-z0-9-_]+$', errorMessage: { pattern: 'letters, digits, hyphen and underscore are only allowed' } }
Im getting the default error message for 'pattern' keyword i.e "must match pattern \"^[A-Za-z0-9-_]+$\", instead of the message that i have defined.
Hi,
schema,
Im getting the default error message for 'pattern' keyword i.e "must match pattern \"^[A-Za-z0-9-_]+$\", instead of the message that i have defined.