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

Add constraint annotations for Polish identification numbers

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects versions: 5.1.3.Final
    • Fix versions: 5.4.0.Beta1
    • Components: validators
    • Labels:
      None

      Description

      Polish indetifiaction numbers REGON and NIP are using Mod11 checksum algorithm but with weights that does not increase linearly, e.g. 14 digit REGON has weights: 2 4 8 5 0 9 7 3 6 1 2 4 8.

      It would be nice to have the possibility to provide custom weights as a parameter to Mod1XCheck annotation.

      Provide constraint annotations for three Polish identification numbers:

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: