Skip to content

Commit

Permalink
[test-studio] Put som validation rules on simpleBlock
Browse files Browse the repository at this point in the history
  • Loading branch information
skogsmaskin committed Aug 27, 2020
1 parent 4cd4fed commit 4080991
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/test-studio/schemas/simpleBlock.js
Expand Up @@ -23,7 +23,11 @@ export default {
},
of: [
{type: 'image', name: 'image'},
{type: 'object', name: 'test', fields: [{type: 'string', name: 'mystring'}]},
{
type: 'object',
name: 'test',
fields: [{type: 'string', name: 'mystring', validation: Rule => Rule.required()}]
},
{
type: 'reference',
name: 'strongAuthorRef',
Expand All @@ -33,7 +37,11 @@ export default {
]
},
{type: 'image', name: 'image'},
{type: 'object', name: 'test', fields: [{type: 'string', name: 'mystring'}]}
{
type: 'object',
name: 'test',
fields: [{type: 'string', name: 'mystring', validation: Rule => Rule.required()}]
}
]
},
{
Expand Down

0 comments on commit 4080991

Please sign in to comment.