eufemia icon indicating copy to clipboard operation
eufemia copied to clipboard

feat(Field.NationalIdentityNumber): adds fnr validation

Open langz opened this issue 7 months ago • 5 comments

Motivation from https://dnb-it.slack.com/archives/CMXABCHEY/p1720521252444219

This is just the first stab at potentially introducing fnr validation to the Field.NationalIdentityNumber component.

Let's not merge this until we've had a discussion about:

  • Introducing the https://github.com/navikt/fnrvalidator library in our library
  • Should we even add this validation?
  • Should we also add validation initially, like if should we initially display the error when providing the following not-valid fnr <Field.NationalIdentityNumber value="12345678901" />?
  • Add unit tests...

langz avatar Jul 10 '24 13:07 langz