Skip to content

Commit

Permalink
test(examples): add example of validation of string as primitive arra…
Browse files Browse the repository at this point in the history
…y item
  • Loading branch information
mariuslundgard authored and bjoerge committed Apr 8, 2021
1 parent f617ff2 commit 50fffb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/test-studio/schemas/arrays.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ export default {
title: 'Array of strings',
description: 'This array contains only strings, with no title',
type: 'array',
of: [{type: 'string'}],
of: [{type: 'string', validation: (Rule) => Rule.required().min(10).max(80)}],
},
{
name: 'arrayOfPrimitives',
Expand Down

0 comments on commit 50fffb9

Please sign in to comment.