Skip to content

Validate duplicates in array #401

@gaastonsr

Description

@gaastonsr

I need to validate if there are duplicates in an array and I would gladly do it if Joi let me define custom validations. But given the case it's not allowed at the moment, I thought it could be a nice addition to the library.

Of course, we would need to consider some cases with objects and arrays. Maybe experiment first with numbers and strings.

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions