Skip to content

Commit

Permalink
Add description for oneof tag
Browse files Browse the repository at this point in the history
  • Loading branch information
nao1215 committed May 13, 2024
1 parent 2e1e56a commit 4c9389b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ You set the validation rules following the "validate:" tag according to the rule
| min | Check whether value is greater than or equal to the specified value <br> e.g. `validate:"min=1"` |
| max | Check whether value is less than or equal to the specified value <br> e.g. `validate:"max=100"` |
| len | Check whether the length of the value is equal to the specified value <br> e.g. `validate:"len=10"` |
| oneof | Check whether value is included in the specified values <br> e.g. `validate:"oneof=male female prefer_not_to"` |

## License
[MIT License](./LICENSE)
Expand Down

0 comments on commit 4c9389b

Please sign in to comment.