Skip to content

Handle null being provided to type when we do an optimized anyOf check #33

@mwildehahn

Description

@mwildehahn

We try and optimize anyOf checks for types that all have a specific string field that acts like an enum. This optimized check isn't handling if that provided value is given as null here:

->addAssignment('$type_name', '($typed[$key] ?? null) as nonnull', HackBuilderValues::literal())
.

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