From af1e6700a90df896d628350a9ff07a03cde427e0 Mon Sep 17 00:00:00 2001 From: Cal Corum Date: Sat, 28 Feb 2026 10:52:56 -0600 Subject: [PATCH] store: Fix: SBA API transaction move_id is a string not i64 --- ...tion-move-id-is-a-string-not-i64-d5b658.md | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 graph/fixes/fix-sba-api-transaction-move-id-is-a-string-not-i64-d5b658.md diff --git a/graph/fixes/fix-sba-api-transaction-move-id-is-a-string-not-i64-d5b658.md b/graph/fixes/fix-sba-api-transaction-move-id-is-a-string-not-i64-d5b658.md new file mode 100644 index 00000000000..bcb50b1e136 --- /dev/null +++ b/graph/fixes/fix-sba-api-transaction-move-id-is-a-string-not-i64-d5b658.md @@ -0,0 +1,26 @@ +--- +id: d5b6584e-ae9d-4462-aeb0-eac103156dfc +type: fix +title: "Fix: SBA API transaction move_id is a string not i64" +tags: [sba-scout, rust, api, serde, fix, transactions] +importance: 0.6 +confidence: 0.8 +created: "2026-02-28T16:52:56.737424+00:00" +updated: "2026-02-28T16:52:56.737424+00:00" +--- + +# Transaction move_id as String + +**Project:** sba-scout (Rust) | **Commit:** `60b397b` + +## Problem + +The SBA league API returns transaction `moveid` as a formatted string like `"Season-013-Week-11-1772073335"`, not an integer. Deserializing as `Option` panics/errors. + +## Fix + +Changed `move_id` from `Option` to `Option` in `api/types.rs` `TransactionData` struct. + +## Pattern + +Don't assume numeric-looking field names in an API are actually integers. Inspect real API responses before choosing Rust types. Transaction/move identifiers often encode semantic information as composite strings.