Skip to content

Commit f413af7

Browse files
committed
fix lint
1 parent ce9ab03 commit f413af7

File tree

1 file changed

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

1 file changed

+6
-2
lines changed

sources/platform/actors/development/actor_definition/input_schema/specification.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,9 +471,10 @@ In this example, the object has validation rules for its properties:
471471
- The `timeout` and `locale` properties are required
472472
- No additional properties beyond those defined are allowed
473473

474-
**Handling default and prefill values for object sub-properties**
474+
**Handling default and prefill values for object sub-properties:**
475475

476476
When defining object with sub-properties, it's possible to set `default` and `prefill` values in two ways:
477+
477478
1. **At the parent object level**: You can provide a complete object as the `default` or `prefill` value, which will set values for all sub-properties at once.
478479
2. **At the individual sub-property level**: You can specify `default` or `prefill` values for each sub-property separately within the `properties` definition.
479480

@@ -707,9 +708,10 @@ In this example:
707708
- No additional properties beyond those defined are allowed.
708709
- The validation of each object item works the same as for a single object field (see [Object fields validation](#object-fields-validation)).
709710

710-
**Handling default and prefill values array with object sub-properties**
711+
**Handling default and prefill values array with object sub-properties:**
711712

712713
When defining an array of objects with sub-properties, it's possible to set `default` and `prefill` values in two ways:
714+
713715
1. **At the parent array level**: You can provide an array of complete objects as the `default` or `prefill` value, which will be used only if there is no value specified for the field.
714716
2. **At the individual sub-property level**: You can specify `default` or `prefill` values for each sub-property within the `properties` definition of the object items. These values will be applied to each object in the array value.
715717

@@ -748,11 +750,13 @@ For example, having an input schema like this:
748750
```
749751

750752
If there is no value specified for the field, the array will default to containing one object:
753+
751754
```json
752755
[
753756
{ "url": "https://apify.com", "port": 80 }
754757
]
755758
```
759+
756760
However, if the user adds a new item to the array, the `port` sub-property of that new object will default to `8080`, as defined in the sub-property itself.
757761

758762
#### `schemaBased` editor

0 commit comments

Comments
 (0)