Meteor-Community-Packages / meteor-simple-schema

Meteor integration package for simpl-schema
https://github.com/Meteor-Community-Packages/meteor-simple-schema
MIT License
919 stars 161 forks source link

Nulls in array not permitted when array of optional booleans is defined #709

Closed cormip closed 6 years ago

cormip commented 6 years ago

For example:

attendance:{
   type: Array,
   optional:true
},
"attendance.$" : {
   type: Boolean,
   optional:true
}

If I then try to save the array [true,null,false] I get an error "Must be of type Boolean". Is there another way to do this?

aldeed commented 6 years ago

The Meteor SimpleSchema package is no longer maintained other than critical fixes to keep it running with each latest Meteor release. Closing non-critical issues in this repo. Anyone who cares about this may do one or more of the following: