Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
anton-johansson opened this issue Sep 28, 2023 · 0 comments
Open

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

anton-johansson opened this issue Sep 28, 2023 · 0 comments

Comments

@anton-johansson
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant