fix(Collection): Add noValidate option to Collection#add by ivanvoznyakovsky · Pull Request #446 · js-data/js-data

Conversation

@ivanvoznyakovsky

In our project we've come into a problem to skip validation of records returned by adapter. Eg. all records received from API should be treated as valid records. Passing noValidate: true to find/findAll was not respected cause property setter gets noValidate property value from Settable. Settable instance get's this property from schema definition, which is false by default. Hence no matter what value for noValidate we pass to find/findAll it does not affect validation.

@codecov-io

jmdobry

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

@jmdobry jmdobry changed the title fix(Collection): respect noValidate override passed in to find/findAll when adding records fix(Collection): Add noValidate option to Collection#add

Feb 20, 2017

jmdobry added a commit that referenced this pull request

Feb 20, 2017

Labels