**Reject malformed away_number values in JSON imports** #73
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
umpire274/bs_scoring#73
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reject malformed away_number values in JSON imports
When a JSON record includes
away_numberwith a non-integer type, such as a quoted string in hand-edited data,and_then(|v| v.as_i64())turns it intoNoneand this branch silently defaults it to the home number. That produces a successful import with the wrong away jersey number instead of reporting the invalid field; only an actually omitted compatibility field should take this default.Useful? React with 👍 / 👎.
Originally posted by @chatgpt-codex-connector[bot] in https://github.com/umpire274/bs_scoring/pull/71#discussion_r3347131824