Skip to content

Commit

Permalink
docs: correct constraints order in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
DReigada authored Dec 19, 2023
1 parent dd58d0f commit 8c3ed49
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 @@ -80,14 +80,14 @@ Restrict to a minimum length
```directives: [constraints: [format: :uuid]]```
Ensure value is in a particular format

#### pattern
```directives: [constraints: [pattern: "^[A-Z][0-9a-z]*$"]]```
Ensure value follows a specific Regex pattern

Supported formats:
- `: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]*$"]]```
Ensure value follows a specific Regex pattern

### Number (integer/float)

#### min
Expand Down

0 comments on commit 8c3ed49

Please sign in to comment.