CultNet: refuse a binding serializer that returns null #177
Loading…
Reference in a new issue
No description provided.
Delete branch "hands/cultnet-cs-null-serializer"
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?
Closes Soul finding cultlib-gaps:finding:cut-bytes-after-cs.s3.null-serializer-silent-fallback.
ToRawRecord used
binding?.PayloadSerializer(document) ?? default, so a binding whose serializer returned null silently took the default serializer. Now a binding owns its bytes: null throws InvalidOperationException (type and schema named). CreateRawDocumentPutMessage shares the same check (it previously put a null payload on the wire). Non-null results unchanged.Test: BytesAfterPathTests.ABindingWhoseSerializerReturnsNullIsRefusedNotDefaulted fails on the old line (Expected InvalidOperationException, was null); full GameCult.Networking.Tests 846 passed, 4 skipped.
🤖 Generated with Claude Code
f4e3359e; the mesh tests pass locally, 364)