feat: add `IsISO31661Numeric` decorator for country codes by RobinvanderVliet · Pull Request #2657 · typestack/class-validator · GitHub
Skip to content

feat: add IsISO31661Numeric decorator for country codes#2657

Merged
braaar merged 5 commits into
typestack:developfrom
RobinvanderVliet:isISO31661Numeric
Feb 25, 2026
Merged

feat: add IsISO31661Numeric decorator for country codes#2657
braaar merged 5 commits into
typestack:developfrom
RobinvanderVliet:isISO31661Numeric

Conversation

@RobinvanderVliet

@RobinvanderVliet RobinvanderVliet commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Description

Add IsISO31661Numeric validation decorator for ISO 3166-1 numeric countries codes. We already have IsISO31661Alpha2 and IsISO31661Alpha3, but the one for numeric codes is missing. This pull request fixes that gap.

Checklist

  • the pull request title describes what this PR does (not a vague title like Update index.md)
  • the pull request targets the default branch of the repository (develop)
  • the code follows the established code style of the repository
    • npm run prettier:check passes
    • npm run lint:check passes
  • tests are added for the changes I made (if any source code was modified)
  • documentation added or updated
  • I have run the project locally and verified that there are no errors

Fixes

fixes #2656

@braaar

braaar commented Feb 25, 2026

Copy link
Copy Markdown
Member

@braaar braaar merged commit 4fcad7b into typestack:develop Feb 25, 2026
7 checks passed
@github-actions

Copy link
Copy Markdown

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

feature: add IsISO31661Numeric decorator

2 participants