Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Fix incorrect examples of some String validators

On String validators minlength and maxlength:
- the special tokens {MINLENGTH} and {MAXLENGTH} were said to be replaced by the 'invalid value'. Changed that to 'minimum allowed length' and 'maximum allowed length'.
- validate() was called on variable s instead of address.
- The minlength example validated min 10, but shows error msg for min 5. Changed to validate 5
- The maxlength example validated max 10, but validates a max 10 string. Changed to validate 9 and show error msg for 9.
latest commit e02c9333bf
@rhmeeuwisse rhmeeuwisse authored
..
Failed to load latest commit information.
drivers fix; hack to not overwrite driver collection properties with function…
error fix; don't use arguments.callee, kills strict mode (Fix #3046)
schema Fix incorrect examples of some String validators
services fix; properly handle setDefaultsOnInsert (Fix #2938)
types Fixes #3034; check for doc not instanceof Document in Array or Docume…
aggregate.js docs; explain weird syntax re: aggregation cursor (Fix #2955)
browser.js Make docs compile again on master
browserDocument.js Lazy fix for #2521: use forked hooks
cast.js docs; fix broken class names (Fix #2913)
collection.js fix; hack to not overwrite driver collection properties with function…
connection.js refactor; use relative driver path throughout
connectionstate.js Fix #2599: add "unauthorized" connection state and handle it graceful…
document.js Fixed indentation
document_provider.js return document_provider.js
error.js fix; don't use arguments.callee, kills strict mode (Fix #3046)
index.js refactor; use relative driver path throughout
internal.js Test for #1638
model.js population of undefined fields in a collection of docs
promise.js docs; fix broken class names (Fix #2913)
query.js fix; set findOneAndUpdate properties before hooks #3024
queryhelpers.js moved query.js createModel private to queryhelpers.js for use in hydr…
querystream.js fix; use populate options when init-ing a doc in query stream (Fix #2841
schema.js Refill missing parameters
schematype.js fix; validateSync when used with required and maxlength (Fix #3025)
statemachine.js fix; less weird statemachine constructor (Fix #2909)
utils.js refactor; move readpref behind driver layer
virtualtype.js added; virtual {g,s}etter introspection
Something went wrong with that request. Please try again.