Skip to content

Doc validators not copied after pick or omit #491

@mariusrak

Description

@mariusrak

I noticed it with doc validators but it's certainly same for other validators and perhaps other stuff.

const schema = new SimplSchema({value: String})
schema.addDocValidator(() => [])
console.log(schema._docValidators.length, schema.pick("value")._docValidators.length); // 1 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions