You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Servings JSON 'Day' field is always null — dead schema field #43
This is documented in the prime GOTCHAS ("'servings' rows have a 'Day' field that is always null — use 'RecordedTime'"), so it's a known wart — but documenting it doesn't make it less wrong. Consumers waste a key on a sentinel; jq recipes that introspect schemas have to special-case it.
Two reasonable fixes:
Drop the field from ServingRecord (json tag with omitempty or remove entirely). Cleanest.
Populate it from RecordedTime's local-date portion if it's meant to be a denormalized convenience. Keeps the field but makes it useful.
I lean #1 — RecordedTime already carries the info, the GOTCHAS note already tells users to use it.
Once fixed, remove the corresponding line from cmd/prime.go GOTCHAS.
Activity
Terastar-Paperclip commentedon May 19, 2026
Triage:
kind:bug·area:format·priority:lowNo CONTRACT.md change — JSON shape inside a record is not standardized in the contract. Engineering ownership.