idnumbers
    Preparing search index...

    Enumeration ValidationFailureReason

    Machine-readable cause of a failed validation. Non-exhaustive: later minor releases may add more specific codes, so always handle unknown values.

    Index
    CHECKSUM_MISMATCH: "checksum_mismatch"
    INVALID_BIRTHDATE: "invalid_birthdate"

    The ID has the right shape, but the birth date it encodes is not a real date (e.g. a 31st of February). Reported for countries whose validator checks the embedded date (#130).

    INVALID_FORMAT: "invalid_format"
    INVALID_LENGTH: "invalid_length"
    NOT_PARSABLE: "not_parsable"

    The ID is valid, but no information can be parsed from it: the country has no parser, or its parser returned nothing. Only parseIdInfo() reports it (#123).

    UNSUPPORTED_COUNTRY: "unsupported_country"
    VALIDATION_FAILED: "validation_failed"