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

nullable 1 item enum are made const and should not #347

Open
AntoineMontane opened this issue Mar 14, 2022 · 0 comments
Open

nullable 1 item enum are made const and should not #347

AntoineMontane opened this issue Mar 14, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@AntoineMontane
Copy link

AntoineMontane commented Mar 14, 2022

Hi !

Nullable 1 item enum should be able to be either the 1 item or nothing.

Due to

if (fullSchema.enum && fullSchema.enum.length === 1) {

nullable single item enum are made const and not visible at all.

Should add one more condition on ! nullable.

Antoine

@albanm albanm self-assigned this Mar 14, 2022
@albanm albanm added the bug Something isn't working label Mar 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants