A bidirectional data format descriptor for message payloads.
parse(raw) decodes an incoming wire string into Input (used by handlers)
serialize(val) encodes an Output value to a wire string (used by handlers)
For symmetric serializers (serializers.raw), Input === Output === string.
For serializers.json, both default to any so each handler can annotate its own types.
Use serializers.custom to supply your own parse/serialize pair.
A bidirectional data format descriptor for message payloads.
parse(raw)decodes an incoming wire string intoInput(used by handlers)serialize(val)encodes anOutputvalue to a wire string (used by handlers)For symmetric serializers (
serializers.raw),Input === Output === string. Forserializers.json, both default toanyso each handler can annotate its own types. Useserializers.customto supply your ownparse/serializepair.