Skip to content

Commit

Permalink
Update usage of pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Feb 29, 2024
1 parent c6d5850 commit 6df37c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,13 @@ Ensure value contains foo
```@constraint(notContains: "foo")```
Ensure value does not contain foo

#### pattern(unimplemented)
#### pattern
```@constraint(pattern: "^[0-9a-zA-Z]*$")```
Ensure value matches regex, e.g. alphanumeric

> [!WARNING]
> Unlike others, actual validation of `pattern` is not implemented. You need to implement it on your application side.

### Int/Float
#### min
```@constraint(min: 3)```
Expand Down

0 comments on commit 6df37c2

Please sign in to comment.