Skip to content

Commit

Permalink
docs: update README.md (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirega authored Apr 4, 2024
1 parent 8c3ed49 commit c56cddf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,15 @@ Restrict to a minimum length

#### max_length
```directives: [constraints: [max_length: 5]]```
Restrict to a minimum length
Restrict to a maximum length

#### format
```directives: [constraints: [format: :uuid]]```
```directives: [constraints: [format: "uuid"]]```
Ensure value is in a particular format

Supported formats:
- `:uuid` - uses :elixir_uuid to validate the value
- `:email` - uses a regex to validate the value
- `"uuid"` - uses :elixir_uuid to validate the value
- `"email"` - uses a regex to validate the value

#### pattern
```directives: [constraints: [pattern: "^[A-Z][0-9a-z]*$"]]```
Expand Down

0 comments on commit c56cddf

Please sign in to comment.