Skip to content

feat(barcode): add validation for non-digit barcode inputs#451

Closed
harshithav-sys wants to merge 1 commit intoopenfoodfacts:developfrom
harshithav-sys:improve-product-error
Closed

feat(barcode): add validation for non-digit barcode inputs#451
harshithav-sys wants to merge 1 commit intoopenfoodfacts:developfrom
harshithav-sys:improve-product-error

Conversation

@harshithav-sys
Copy link
Copy Markdown

Adds validation in normalize_barcode() to ensure that barcodes contain only digits.

This prevents invalid inputs such as "abc123" from being normalized incorrectly and improves input validation for SDK users.

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 7, 2026

@raphael0202
Copy link
Copy Markdown
Contributor

Hello @harshithav-sys,
This currently brings no value given our use case. I'm closing the PR.

@harshithav-sys
Copy link
Copy Markdown
Author

harshithav-sys commented Mar 11, 2026 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants