Uploaded image for project: 'Hibernate Validator'
  1. HV-1496

Add @CodePointLength constraint that validates code point length

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.2.Final
    • Fix Version/s: 6.0.3.Final
    • Component/s: engine
    • Labels:
      None

      Description

      I propose to add the @CodePointLength that validate the code point length of character sequence is between min and max.
      In my application, the surrogate pair character must be counted as one length, Therefore I need to add the custom constraint (The @Size or @Length cannot use because these are counted it as two lengths character)

      I think it is very generally constraint. Could you support this constraint on Hibernate Validator?

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: