Skip to content

Commit

Permalink
Add example using guid version
Browse files Browse the repository at this point in the history
  • Loading branch information
talyssonoc committed Feb 22, 2019
1 parent baeafac commit 1458aba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ const User = attributes({
type: String,
guid: true
},
token: {
type: String,
guid: {
version: ['uuidv4']
}
},
initials: {
type: String,
upperCase: true,
Expand Down
6 changes: 6 additions & 0 deletions new-docs/validation/string-validations.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ const User = attributes({
type: String,
guid: true
},
token: {
type: String,
guid: {
version: ['uuidv4']
}
},
initials: {
type: String,
upperCase: true,
Expand Down

0 comments on commit 1458aba

Please sign in to comment.