wtho / avro-decorators

Typescript class decorators to model your avro schema
MIT License
5 stars 2 forks source link

Q: Decorators for Logical Types #227

Open cbelogu opened 5 months ago

cbelogu commented 5 months ago

Hi @wtho , thank you for this library. Quite helpful. Just wanted to know how we can achieve logical types with the current version?

        {
            name: "startTime",
            type: {
                type: "long",
                logicalType: "timestamp-millis",
            },
        },
wtho commented 5 months ago

Hey @cbelogu! This was only a small hobby project and I am not using it in any way anymore, so please be aware there might be bugs. I didn't look into the logical types too much, but you should be able to extend it if you are open to dig a bit into the library. Maybe I can also try to find some time and look into it, but I can't promise I'll be able to.

cbelogu commented 5 months ago

Hey @cbelogu! This was only a small hobby project and I am not using it in any way anymore, so please be aware there might be bugs. I didn't look into the logical types too much, but you should be able to extend it if you are open to dig a bit into the library. Maybe I can also try to find some time and look into it, but I can't promise I'll be able to.

Thanks for replying. My use case is a very simple one, have some workarounds to move forward so all good for now. I'll also look at submitting a PR when I get some time (🤞 )

Also noticed https://www.npmjs.com/package/avro-decorators-es?activeTab=versions and thought this is being revived 😁 Thanks again @wtho