Skip to content

Commit dcbc343

Browse files
committed
docs: add note about new uuid format
1 parent 0007ff8 commit dcbc343

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ schema.string({ format: 'host' })
8484
schema.string({ format: 'url' })
8585
// Must be a valid email address
8686
schema.string({ format: 'email' })
87+
// Must be a valid UUID
88+
schema.string({ format: 'uuid' })
8789
```
8890

8991
When validating the `url` format, you can also define additional options to force/ignore the `tld` and `protocol`.

0 commit comments

Comments
 (0)