Skip to content

Commit 3c19ef0

Browse files
committed
fix: How to make fields nullable in dataset schema
1 parent d42f70c commit 3c19ef0

File tree

1 file changed

+12
-2
lines changed
  • sources/platform/actors/development/actor_definition/dataset_schema

1 file changed

+12
-2
lines changed

sources/platform/actors/development/actor_definition/dataset_schema/validation.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,22 @@ Enabling fields to be `null` :
185185
```json
186186
{
187187
"name": {
188-
"type": "string",
189-
"nullable": true
188+
"type": ["string", "null"]
190189
}
191190
}
192191
```
193192
193+
In case of enums `null` needs to be within the set of allowed values:
194+
195+
```json
196+
{
197+
"type": {
198+
"enum": ["list", "detail", null]
199+
}
200+
}
201+
```
202+
203+
194204
Define type of objects in array:
195205
196206
```json

0 commit comments

Comments
 (0)