Skip to content

Conversation

fira42073
Copy link

@fira42073 fira42073 commented Oct 14, 2025

Fixes Or Enhances

#1471

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

@fira42073 fira42073 requested a review from a team as a code owner October 14, 2025 09:29
@fira42073 fira42073 changed the title feat: add test to check for bic that's only valid under 2022 specification Support for ISO 9362:2022 BIC (SWIFT) codes Oct 14, 2025
@coveralls
Copy link

coveralls commented Oct 14, 2025

Coverage Status

coverage: 73.73%. remained the same
when pulling a74c100 on fira42073:bic-iso-9362-2022
into 2d3af3d on go-playground:master.

@nodivbyzero
Copy link
Contributor

Would it be better to introduce a new validator, such as bic_iso_9362, rather than modifying the existing one? This approach would preserve backward compatibility and ensure that current functionality remains unaffected.

@fira42073
Copy link
Author

sounds good, I can do that, but fyi https://www.iso.org/standard/60390.html the standard is withdrawn, and the 2022 one is inclusive of all old BICs from 2014 one. but if we are to proceed with the namespaced versions, how should we distinguish 2014 and 2022 ones? bic_iso_9362_2014 and bic_iso_9362_2022?

@nodivbyzero
Copy link
Contributor

Another option is to rename the existing one to bic_iso_9362_2014 and keep your current changes. We can also add a note/comment in the documentation to clarify this distinction.

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.

3 participants