Skip to content

toPaths and defaultValue cause mutations to original schema, ignores z.clone() #568

@wms

Description

@wms

toPaths and defaultValue seem to have some weird interaction in that running them on the same schema causes a change in the output, even if I use z.clone() before applying either operation.

Although I'm only using these functions, there may be other interactions I've not uncovered.

Reproduction.

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