Skip to content

Clone and Performances ? #10

@jeremieca

Description

@jeremieca

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions