Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Drew-Kimberly opened this issue Dec 5, 2024 · 0 comments

Comments

@Drew-Kimberly
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant