Skip to content

Coercion feature #344

@Navgeet

Description

@Navgeet

Hi, my company is using this library and we have a requirement of coercing types and also perform other types of data correction. I see that this feature is available in some other libraries too. See https://ajv.js.org/coercion.html.

Rather than implement this for ourselves, I think it would be better to add this feature here. That is, if you would like to integrate coercion into this library. If this sounds good, I can come up with a plan (and perhaps a poc) to demonstrate how this would work. I would also like to make it configurable by adding an interface which user can implement and add their own coercion implementations.

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