Skip to content

feat: BIC (SWIFT) validation constraint (IGO-32)#97

Merged
strider2038 merged 2 commits into
mainfrom
cursor/-bc-ec18ed08-b0b4-440b-aa61-e9c4e781c97b-4a7d
Apr 6, 2026
Merged

feat: BIC (SWIFT) validation constraint (IGO-32)#97
strider2038 merged 2 commits into
mainfrom
cursor/-bc-ec18ed08-b0b4-440b-aa61-e9c4e781c97b-4a7d

Conversation

@strider2038
Copy link
Copy Markdown
Contributor

Summary

  • add BIC / SWIFT validation API aligned with Symfony Bic/BicValidator:
    • validate.BIC with BICCaseInsensitive and BICWithIBAN
    • it.IsBIC() with CaseInsensitive, WithIBAN, WithIBANError, WithIBANMessage
    • is.BIC
    • new errors/messages/translations in EN/RU
  • add examples and changelog entry
  • add follow-up tests to cover review findings:
    • custom IBAN mismatch path via WithIBANError/WithIBANMessage
    • IBAN canonicalization in BIC cross-check (lowercase + spaced IBAN)

Validation

  • go test ./...
Open in Web Open in Cursor 

cursoragent and others added 2 commits April 6, 2026 17:51
- validate.BIC with strict/case-insensitive modes and optional IBAN country check
- it.IsBIC with CaseInsensitive, WithIBAN, and mismatch messages
- is.BIC, messages, EN/RU translations, tests and examples
- Aligned with Symfony BicValidator; regions via golang.org/x/text/language

Co-authored-by: Igor Lazarev <strider2038@yandex.ru>
Co-authored-by: Igor Lazarev <strider2038@yandex.ru>
@strider2038 strider2038 marked this pull request as ready for review April 6, 2026 17:54
@strider2038 strider2038 closed this Apr 6, 2026
@strider2038 strider2038 reopened this Apr 6, 2026
@strider2038 strider2038 merged commit 8baba82 into main Apr 6, 2026
3 checks passed
@strider2038 strider2038 deleted the cursor/-bc-ec18ed08-b0b4-440b-aa61-e9c4e781c97b-4a7d branch April 6, 2026 17:55
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