File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1547,7 +1547,7 @@ Name | Default text
1547
1547
`dateMin` | The '{field}' field must be greater than or equal to {expected}.
1548
1548
`dateMax` | The '{field}' field must be less than or equal to {expected}.
1549
1549
`forbidden` | The '{field}' field is forbidden.
1550
- `email` | The '{field}' field must be a valid e-mail.
1550
+ `email` | The '{field}' field must be a valid e-mail.
1551
1551
`emailEmpty` | The '{field}' field must not be empty.
1552
1552
`emailMin` | The '{field}' field length must be greater than or equal to {expected} characters long.
1553
1553
`emailMax` | The '{field}' field length must be less than or equal to {expected} characters long.
@@ -1571,6 +1571,20 @@ Name | Description
1571
1571
`expected` | The expected value
1572
1572
`actual` | The actual value
1573
1573
1574
+ # Pass custom metas
1575
+ In some case, you will need to do something with the validation schema .
1576
+ Like reusing the validator to pass custom settings, you can use properties starting with `$$`
1577
+
1578
+ ````typescript
1579
+ const check = v.compile ({
1580
+ $$name: ' Person' ,
1581
+ $$description: ' write a description about this schema' ,
1582
+ firstName: { type: " string" },
1583
+ lastName: { type: " string" },
1584
+ birthDate: { type: " date" }
1585
+ });
1586
+ ````
1587
+
1574
1588
# Development
1575
1589
```
1576
1590
npm run dev
You can’t perform that action at this time.
0 commit comments