simpl-schema
Advanced tools
Changelog
1.7.0
If an array item (field ending with .$
) has optional: true
, this now allows it to have null
items without any validation error being thrown. Previously adding optional: true
to an array item had no effect.
Changelog
1.6.2
SimpleSchema.regEx.idOfLength
for variable length IDsdeep-extend
dependency to fix undefined Buffer
errorsChangelog
1.6.0
lodash
packagesextend
package with deep-extend
, which is smaller and is the same package used by the message-box
dependencyblackbox: true
(thanks @cwouam)this
context for all rule functions (see README) (thanks @Neobii)this
context for all whole-doc validator functions (see README) (thanks @bhunjadi)Changelog
1.5.6
.default
when importing in a non-Babel Node project.Changelog
1.5.5
oneOf
typeChangelog
1.5.4
$setOnInsert
to modifiers for defaultValues only when isUpsert
is set to true
in clean options or in extended autoValue context. It used to be ignored but newer MongoDB versions throw an error. Might fix #304getAllowedValues
now returns null
when allowedValues
isn't set (thanks @MohammedEssehemy)