Skip to content

Casting and renaming #54

@devel-pa

Description

@devel-pa

Hi,

I just started to use your library and helps me, nice job.

There is any way, when casting, to rename the properties (as ex. to in case renaming to something else or 'from' in case renaming from something)

As an extra question, there is any way to cast an object and any missing values to be set as default values? Yes, I know, like below, but with property renaming becomes pretty big.

{
  ...Schema.makeDefault(),
  ...Schema.cast({...}),
}

Thx,

Paul

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