Skip to content

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

@anton-johansson

Description

@anton-johansson

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions