rawmodel / framework

Strongly-typed JavaScript object with support for validation and error handling.
https://rawmodel.github.io/framework/
MIT License
142 stars 16 forks source link

Fix handling array values in validator and handler #80

Closed xpepermint closed 4 years ago

codecov-io commented 4 years ago

Codecov Report

Merging #80 into master will increase coverage by 0.18%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #80      +/-   ##
==========================================
+ Coverage   91.48%   91.67%   +0.18%     
==========================================
  Files          70       72       +2     
  Lines         987     1009      +22     
  Branches      194      196       +2     
==========================================
+ Hits          903      925      +22     
  Misses         36       36              
  Partials       48       48
Impacted Files Coverage Δ
packages/rawmodel-core/src/core/props.ts 90.44% <ø> (-0.61%) :arrow_down:
packages/rawmodel-core/src/core/validator.ts 85% <100%> (+0.78%) :arrow_up:
...es/rawmodel-validators/src/validators/inclusion.ts 100% <100%> (ø)
packages/rawmodel-core/src/core/handler.ts 90% <100%> (+5.78%) :arrow_up:
packages/rawmodel-validators/src/index.ts 96.15% <100%> (+0.32%) :arrow_up:
...es/rawmodel-validators/src/validators/exclusion.ts 100% <100%> (ø)
...model-validators/src/validators/array-exclusion.ts 100% <100%> (ø) :arrow_up:
...model-validators/src/validators/array-inclusion.ts 100% <100%> (ø) :arrow_up:
... and 3 more