Skip to content

Commit ce28e77

Browse files
authored
fix: wrong output schema field types (#1746)
Fix the type of the output schema fields. - `transformation.omit` and `transformation.unwind` should be an array of strings, as Worker enforces that.
1 parent bb7aabb commit ce28e77

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ The dataset schema structure defines the various components and properties that
218218
| Property | Type | Required | Description |
219219
| --- | --- | --- | --- |
220220
| `fields` | string[] | true | Selects fields to be presented in the output. <br/>The order of fields matches the order of columns <br/>in visualization UI. If a field value <br/>is missing, it will be presented as **undefined** in the UI. |
221-
| `unwind` | string | false | Deconstructs nested children into parent object, <br/>For example, with `unwind:["foo"]`, the object `{"foo": {"bar": "hello"}}` <br/> is transformed into `{"bar": "hello"}`. |
221+
| `unwind` | string[] | false | Deconstructs nested children into parent object, <br/>For example, with `unwind:["foo"]`, the object `{"foo": {"bar": "hello"}}` <br/> is transformed into `{"bar": "hello"}`. |
222222
| `flatten` | string[] | false | Transforms nested object into flat structure. <br/>For example, with `flatten:["foo"]` the object `{"foo":{"bar": "hello"}}` <br/> is transformed into `{"foo.bar": "hello"}`. |
223-
| `omit` | string | false | Removes the specified fields from the output. <br/>Nested fields names can be used as well. |
223+
| `omit` | string[] | false | Removes the specified fields from the output. <br/>Nested fields names can be used as well. |
224224
| `limit` | integer | false | The maximum number of results returned. <br/>Default is all results. |
225225
| `desc` | boolean | false | By default, results are sorted in ascending based on the write event into the dataset. <br/> If `desc:true`, the newest writes to the dataset will be returned first. |
226226

0 commit comments

Comments
 (0)