xogroup / felicity

Javascript object constructors and sample data based on Joi schema.
Other
111 stars 9 forks source link

Support options override on entityFor .validate() calls #123

Closed WesTyler closed 7 years ago

WesTyler commented 7 years ago

Currently calls to .validate() do not support passing in additional or override options (like { stripUnknown: true }). The only options are those set at the time that entityFor is called.

We should allow for optional overrides at the time of validation.

samueljoli commented 7 years ago

@WesTyler Are you currently working on this?

WesTyler commented 7 years ago

@Samueljoli nope. Was going to today and ended up on scss styling all day. I'll un-assign myself if you want to take a stab at it!

WesTyler commented 6 years ago

This was back-ported to v2 in version 2.4.0