Skip to content

Support tagged unions #5

@armstnp

Description

@armstnp

A tagged union would be a variant on hash (and possibly array?) validators that permits different validations to be applied when a specified 'tag' key takes on specific values.

Currently, this can be vaguely emulated by adding rule validators to fields that inspect the tag manually to derive the constraint.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions