Skip to content

Commit d261515

Browse files
committedJun 2, 2023
fix: remove deprecated string options on examples
1 parent 4f11032 commit d261515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎templates/validator.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@ export default class {{ filename }} {
1111
* 1. The username must be of data type string. But then also, it should
1212
* not contain special characters or numbers.
1313
* ```
14-
* schema.string({}, [ rules.alpha() ])
14+
* schema.string([ rules.alpha() ])
1515
* ```
1616
*
1717
* 2. The email must be of data type string, formatted as a valid
1818
* email. But also, not used by any other user.
1919
* ```
20-
* schema.string({}, [
20+
* schema.string([
2121
* rules.email(),
2222
* rules.unique({ table: 'users', column: 'email' }),
2323
* ])

0 commit comments

Comments
 (0)
Please sign in to comment.