From 3c19ef0a9b202440e6e5e815fa75bcd4691635aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20V=C3=A1lek?= Date: Thu, 30 Oct 2025 16:46:16 +0100 Subject: [PATCH] fix: How to make fields nullable in dataset schema --- .../actor_definition/dataset_schema/validation.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sources/platform/actors/development/actor_definition/dataset_schema/validation.md b/sources/platform/actors/development/actor_definition/dataset_schema/validation.md index 745c48db6..a4d10edb0 100644 --- a/sources/platform/actors/development/actor_definition/dataset_schema/validation.md +++ b/sources/platform/actors/development/actor_definition/dataset_schema/validation.md @@ -185,12 +185,22 @@ Enabling fields to be `null` : ```json { "name": { - "type": "string", - "nullable": true + "type": ["string", "null"] } } ``` +In case of enums `null` needs to be within the set of allowed values: + +```json +{ + "type": { + "enum": ["list", "detail", null] + } +} +``` + + Define type of objects in array: ```json