Skip to content

Fails with type unions #39

Open
Open
@Rolandisimo

Description

@Rolandisimo

Interface

interface Foo {
    id: number | null;
}

fails the validation by saying Error: Foo.id should be number

Validator file

...
properties: {
    id: {
        type: 'number',
    },
}
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions