I am using http://kafka.js.org/ to produce messages to Kafka, one of the schemas I am working on is a decimal byte type:
{"type": "bytes", "logicalType": "decimal", "precision": 11, "scale": 2}
I am looking for some guidance on how I can convert a decimal in Node to a byte value to match the above schema.
Thanks in advance.
You can try https://www.npmjs.com/package/@ovotech/avro-decimal
This package helped us resolve the same problem