mtth / avsc

Avro for JavaScript :zap:
MIT License
1.28k stars 148 forks source link

Handling logical types #466

Closed sujin-sam closed 1 month ago

sujin-sam commented 2 months ago

I'm pretty much unclear with documentation as I'm beginner for JS

I'm trying to serialize some of these logical types, I'm looking for proper examples to handle it

How to handle below, can you pls share an example ?

value to pass: 2024-08-29

value to pass: 450.00000001

I saw some notes on DecimalType but I couldn't understand how to implement

mtth commented 1 month ago

Have a look here for an end-to-end example and links to a few implementations: https://github.com/mtth/avsc/wiki/Advanced-usage#logical-types