We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be97230 commit 5267000Copy full SHA for 5267000
templates/validator.txt
@@ -9,13 +9,13 @@ class ${filename} {
9
* 1. The username must be of data type string. But then also, it should
10
* not contain special characters or numbers.
11
* ```
12
- * schema.string([ rules.alpha() ])
+ * schema.string({}, [ rules.alpha() ])
13
14
*
15
* 2. The email must be of data type string, formatted as a valid
16
* email. But also, not used by any other user.
17
18
- * schema.string([
+ * schema.string({}, [
19
* rules.email(),
20
* rules.unique({ inTable: 'users', column: 'email' }),
21
* ])
0 commit comments