From c389b9ad145e1b23f1b653c9c006789676189693 Mon Sep 17 00:00:00 2001 From: Lukas Boll Date: Mon, 4 Dec 2023 22:07:31 +0100 Subject: [PATCH] fix(core): Generate UI Schema with Type Null 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 --- packages/core/src/generators/uischema.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/core/src/generators/uischema.ts b/packages/core/src/generators/uischema.ts index 10dea9fbc4..ce540a397e 100644 --- a/packages/core/src/generators/uischema.ts +++ b/packages/core/src/generators/uischema.ts @@ -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);