You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the report! You are right, we should at least not throw an error. The best guess would probably to generate a JSON Schema which defines examplefield as type: "null".
Do you want to contribute this improvement? The generator can be found here.
Previously, the default UI schema generation function threw error when
encountering data containing a null value. With this commit, a control
with type null will be generated, that can be used in custom renderers.
Closeseclipsesource#2207
Previously, the default UI schema generation function threw an error when
encountering a null type. With this commit, a control will be generated, that
can be used in custom renderers.
Closes#2207
Describe the bug
When the JSON Schema has the following null type, uischema can't get generated and it fails with the following error:
Expected behavior
I expect the fields with a
null
type (and type not defined) to be rendered in the form in a custom renderer or with a fallback component.Steps to reproduce the issue
Skip defining a
schema
anduischema
and try to render the following data:Note that
Generate.jsonSchema
generates the schema above.Screenshots
No response
In which browser are you experiencing the issue?
Google Chrome
Which Version of JSON Forms are you using?
v.3.1.0
Framework
Core, React
RendererSet
Material
Additional context
No response
The text was updated successfully, but these errors were encountered: