Skip to content

Removed validation for test persons#44

Draft
HermannBjorgvin wants to merge 2 commits into
masterfrom
stop-failing-persons-with-less-than-20-serials
Draft

Removed validation for test persons#44
HermannBjorgvin wants to merge 2 commits into
masterfrom
stop-failing-persons-with-less-than-20-serials

Conversation

@HermannBjorgvin

Copy link
Copy Markdown
Owner

Since real persons with 0 or 1 as 7th char exist as edge cases I am removing validation for test persons.

And since the person with a KT like that can be valid then test persons will also always be valid, so no need to add an option to allow the test dataset

Comment thread src/index.ts

export const isValid = (
kennitala: string,
options?: ValidationOptions

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a breaking change to the TypeScript definition. Wonder if we should just deprecate and ignore options or bump to v4?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah might be good to patch v3 since it's been available for a while now. Will change this to a patch vs major and v4 can be a separate PR

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Opened another pr #45

Will publish 3.0.4 with the Misc suggestions PR and that one.

@HermannBjorgvin
HermannBjorgvin marked this pull request as draft March 17, 2025 08:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants