Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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