http-spec icon indicating copy to clipboard operation
http-spec copied to clipboard

`null` value always appended to `enum` array when transforming nullable enum properties

Open Drew-Kimberly opened this issue 1 year ago • 0 comments

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

Drew-Kimberly avatar Dec 05 '24 21:12 Drew-Kimberly