Skip to content

Commit

Permalink
fix(core): Generate UI Schema with Type Null
Browse files Browse the repository at this point in the history
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.

Closes #2207
  • Loading branch information
LukasBoll committed Dec 4, 2023
1 parent da3321b commit c389b9a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/generators/uischema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ const generateUISchema = (
/* falls through */
case 'integer':
/* falls through */
case 'null':
/* falls through */
case 'boolean': {
const controlObject: ControlElement = createControlElement(currentRef);
schemaElements.push(controlObject);
Expand Down

0 comments on commit c389b9a

Please sign in to comment.