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 4f11032 commit d261515Copy full SHA for d261515
templates/validator.txt
@@ -11,13 +11,13 @@ export default class {{ filename }} {
11
* 1. The username must be of data type string. But then also, it should
12
* not contain special characters or numbers.
13
* ```
14
- * schema.string({}, [ rules.alpha() ])
+ * schema.string([ rules.alpha() ])
15
16
*
17
* 2. The email must be of data type string, formatted as a valid
18
* email. But also, not used by any other user.
19
20
- * schema.string({}, [
+ * schema.string([
21
* rules.email(),
22
* rules.unique({ table: 'users', column: 'email' }),
23
* ])
0 commit comments