ovotech / castle

Framework for building Kafka and avro based apps in typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

avro-ts-cli: Wrong type info for union types

anton-johansson opened this issue · comments

See code sandbox:
https://codesandbox.io/s/javascript-forked-k99d2s

If I have union of null and int, the integer value is wrapped within an object. But avro-ts-cli does not seem to generate it properly. It generates null | int (which would be ideal of course, but it does not match Avro).

Ideas?