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

Can't save JSONSchemaForm with an empty field #400

Open
decentropy opened this issue Oct 10, 2023 · 0 comments
Open

Can't save JSONSchemaForm with an empty field #400

decentropy opened this issue Oct 10, 2023 · 0 comments

Comments

@decentropy
Copy link

decentropy commented Oct 10, 2023

The issue is... JSONSchemaForm will not let me save data, if a field is empty.

I'm using setIn from the form back to data collection. Clearing out a field, causes error:
TypeError: Type "JSON" is required, but find "desc" type with value: undefined

I've tried setting schema to optional, default ""... but gives error and erases the data.

Not sure where to find my openblocks version, but it's new container off docker.io
Attaching app to replicate issue.

test.json

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