You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Honestly, I haven't run it, but there's a line in your code that says:
if(data.length<schema.items.length){
That looks like it fails if the data array is shorter than the "items" array.
If so, that's not quite correct - tuple typing assigns schemas to particular data items if they exist. If you want a minimum length as well, you need to specify minItems.
The text was updated successfully, but these errors were encountered:
Honestly, I haven't run it, but there's a line in your code that says:
That looks like it fails if the data array is shorter than the "items" array.
If so, that's not quite correct - tuple typing assigns schemas to particular data items if they exist. If you want a minimum length as well, you need to specify
minItems
.The text was updated successfully, but these errors were encountered: