]> git.giacomolli.uk - onehouse/commit
Validate typed publications before encoding
authorAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 21:46:59 +0000 (18:46 -0300)
committerAnderson A. Giacomolli <redacted>
Tue, 10 Nov 2026 21:46:59 +0000 (18:46 -0300)
commitc376881c67694cd9931d80fb4a04ec69751d222b
treed5a476a808a96a13a452999efcd91305b65f897c
parent4bba0e163f1a4dc07b34fd9e4dc403de1f9b4cb9
Validate typed publications before encoding

Builders share payload validation with parsers without encoding and
parsing a publication for validation. Batch members use the shared
metadata and value checks without envelope encoding. Access flag
presence is a JSON input check, separate from typed descriptor checks.
Nil raw values still encode as null without changing caller data, and
the attribution limit measures the text that JSON encodes.

Issue: 8fa2f25
doc/mqtt.rst
protocol/message.go
protocol/message_test.go
protocol/wire_envelope.go