Skip to content

chore(deps): replace custom bcp47_strict_language_tag with upstream#356

Merged
bfabio merged 1 commit intoitalia:mainfrom
creed-bratton:bcp47-upstream-validator
Apr 15, 2026
Merged

chore(deps): replace custom bcp47_strict_language_tag with upstream#356
bfabio merged 1 commit intoitalia:mainfrom
creed-bratton:bcp47-upstream-validator

Conversation

@creed-bratton
Copy link
Copy Markdown
Contributor

go-playground/validator#1489 added bcp47_strict_language_tag as a built-in validator. Our copy in validators/bcp47.go (~400 lines including IANA data tables) is now redundant.

  • Drop validators/bcp47.go and its test file
  • Remove the custom validator registration (it is now baked in)
  • Update bcp47_keys to delegate to the built-in tag via a package-level Validate instance
  • Bump go-playground/validator/v10 to the post-merge commit (b599053) ahead of the next release

Closes #341, closes #342.

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.09%. Comparing base (8117b1a) to head (08462a2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #356      +/-   ##
==========================================
- Coverage   84.76%   84.09%   -0.68%     
==========================================
  Files          15       14       -1     
  Lines        1201     1100     -101     
==========================================
- Hits         1018      925      -93     
+ Misses        155      151       -4     
+ Partials       28       24       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

go-playground/validator@b599053 added bcp47_strict_language_tag as a
built-in validator (go-playground/validator#1489), so our copy is now
redundant. Drop validators/bcp47.go and its tests; update bcp47_keys to
delegate to the built-in tag via a package-level Validate instance.

Closes italia#341, closes italia#342.
@creed-bratton creed-bratton force-pushed the bcp47-upstream-validator branch from b872dda to 08462a2 Compare April 15, 2026 05:16
@bfabio bfabio merged commit bd9b79f into italia:main Apr 15, 2026
4 of 5 checks passed
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