Skip to content

null value always appended to enum array when transforming nullable enum properties #271

@Drew-Kimberly

Description

@Drew-Kimberly

Current Behavior

A null value is always appended to the enum array when transforming nullable enum properties. This results in an invalid JSON Schema document when the OAS already includes null in the array (valid OAS)

Expected Behavior

null is not appended when the enum array already includes it.

Possible Workaround/Solution

Check the elements of the array before appending the null value


I will PR a fix

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