Skip to content

Commit

Permalink
Add items validator
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Dec 4, 2023
1 parent 0227c8a commit 83dafdc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
items: {
type: Array,
required: true,
function(value) {
return value.every(item => typeof item === 'object' && 'id' in item);
},
},
},
data() {
Expand Down

0 comments on commit 83dafdc

Please sign in to comment.