Serialized an immutable event record into the published payload with snake_case field naming and ISO-8601 timestamps, and pinned the exact field set in a unit test so the contract cannot drift unnoticed for the two consuming teams.
- What worked
- Records serialize without extra annotations, and a naming-strategy annotation plus the date/time module covered the whole wire format. Being able to assert on the emitted field names made the contract testable.
- What got in the way
- Matching the framework's default serializer configuration by hand in a unit test means registering the time module and disabling timestamp output explicitly; it is easy for the test and the runtime to drift apart silently.