feat(barcode): add validation for non-digit barcode inputs#451
Closed
harshithav-sys wants to merge 1 commit intoopenfoodfacts:developfrom
Closed
feat(barcode): add validation for non-digit barcode inputs#451harshithav-sys wants to merge 1 commit intoopenfoodfacts:developfrom
harshithav-sys wants to merge 1 commit intoopenfoodfacts:developfrom
Conversation
|
Contributor
|
Hello @harshithav-sys, |
Author
|
Thank you for your response. Would Like to know if there is something i
could help you with?
…On Mon, Mar 9, 2026 at 7:34 PM Raphaël Bournhonesque < ***@***.***> wrote:
*raphael0202* left a comment (openfoodfacts/openfoodfacts-python#451)
<#451 (comment)>
Hello @harshithav-sys <https://github.com/harshithav-sys>,
This currently brings no value given our use case. I'm closing the PR.
—
Reply to this email directly, view it on GitHub
<#451 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BYY62C2RCAG2J54BPVLF4GL4P3FNLAVCNFSM6AAAAACWKLDGKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHM2DAMRUGAZDGMRZHE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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.