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

when the list field is empty, it incorrectly shows a warning #16

Open
bbtgnn opened this issue Mar 19, 2024 · 0 comments
Open

when the list field is empty, it incorrectly shows a warning #16

bbtgnn opened this issue Mar 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@bbtgnn
Copy link
Collaborator

bbtgnn commented Mar 19, 2024

It's a bit hard to fix.
The error is generated from parseJSONSchema function, that validates the json schema using ajv.

It throws an error when the json schema is not valid – which is correct.
But in case of an empty enum it should throw a warning, and not an error, because the editor can handle this scenario.

Due to how errors are currently handled, it's not that straightforward and requires some refactorings.

@bbtgnn bbtgnn added the bug Something isn't working label Mar 19, 2024
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

1 participant