You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is paperwork clone all objects or just when there is too much fields ?
For example if I have this schema
var schema = { age: Number };
And this data
var data = { age: 20, firstname: 'Jean' }
The output will be :
{age: 20}
So, if I well understand, you have created a new "cleaned" object during validation.
But what happened if in data there is no extra fields ? Is object also cleaned ? What is the performance cost ?
Thanks.
The text was updated successfully, but these errors were encountered:
Hello,
Is paperwork clone all objects or just when there is too much fields ?
For example if I have this schema
var schema = { age: Number };
And this data
var data = { age: 20, firstname: 'Jean' }
The output will be :
{age: 20}
So, if I well understand, you have created a new "cleaned" object during validation.
But what happened if in data there is no extra fields ? Is object also cleaned ? What is the performance cost ?
Thanks.
The text was updated successfully, but these errors were encountered: