microsoft / knockout-validation

this library takes error messages, and validation errors and augments a knockout model with helpers to access them
MIT License
9 stars 8 forks source link

Merge with SD (add passive and array validator) #2

Closed ljqx closed 8 years ago

ljqx commented 8 years ago
  1. fixes of string and number validator.
  2. passive and array validator and corresponding tests.
ljqx commented 8 years ago

@lyweiwei , this change adds passive validator which is needed by ko-schema.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-16.2%) to 83.81% when pulling ccc9c9b8e8b455630ed55db743473a58b86acf43 on ljqx:merge-with-SD into df1a62783bcbb80765f72b137ec9efcce7918177 on Microsoft:master.

lyweiwei commented 8 years ago

@ljqx could you add some test cases to silence coveralls?

ljqx commented 8 years ago

@lyweiwei , sure.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 00d0fa25f4f71454cb252fbd06c671ec98dde188 on ljqx:merge-with-SD into df1a62783bcbb80765f72b137ec9efcce7918177 on Microsoft:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 774e488083334b9c94052c478a54c096cb900778 on ljqx:merge-with-SD into df1a62783bcbb80765f72b137ec9efcce7918177 on Microsoft:master.

ljqx commented 8 years ago

@lyweiwei , I've imported some code of component/humanize in this PR, for keeping the coverage, I commented out unused code in it.