Skip to content

Commit aba1aac

Browse files
authored
fix: generate UI Schema for type null
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
1 parent c5f28e6 commit aba1aac

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/core/src/generators/uischema.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ const generateUISchema = (
191191
/* falls through */
192192
case 'integer':
193193
/* falls through */
194+
case 'null':
195+
/* falls through */
194196
case 'boolean': {
195197
const controlObject: ControlElement = createControlElement(currentRef);
196198
schemaElements.push(controlObject);

0 commit comments

Comments
 (0)