fix(Collection): Add noValidate option to Collection#add by ivanvoznyakovsky · Pull Request #446 · js-data/js-data
Conversation
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this!
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters