Skip to content

error: Duplicate field regex #344

Description

@iUnstable0

I updated from 0.16 to 0.18.1 and now it's throwing me error error: Duplicate field regex

    #[validate(
        length(
            min = 3,
            max = 20,
            message = "Username must be between 3 and 20 characters"
        ),
        regex(
            path = "USERNAME_ALLOWED_CHARACTERS",
            message = "Username must only contain alphanumeric characters and underscores"
        ),
        regex(
            path = "USERNAME_UNDERSCORE_LIMIT",
            message = "Username must contain no more than 1 underscore"
        ),
        regex(
            path = "USERNAME_UNDERSCORE_PLACEMENT",
            message = "Username must not start or end with an underscore"
        )
    )]

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions