Skip to content

Commit d23946e

Browse files
committed
feat: move restartOnError to run options
1 parent 7a87cd4 commit d23946e

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

apify-api/openapi/components/schemas/actors/CreateActorRequest.yaml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ properties:
2525
type: string
2626
nullable: true
2727
example: My actor is the best
28-
restartOnError:
29-
type: boolean
30-
nullable: true
31-
example: false
3228
versions:
3329
type: array
3430
items:
@@ -46,6 +42,5 @@ properties:
4642
description: ''
4743
nullable: true
4844
defaultRunOptions:
49-
oneOf:
50-
- nullable: true
51-
- $ref: ./DefaultRunOptions.yaml
45+
nullable: true
46+
$ref: ./DefaultRunOptions.yaml

apify-api/openapi/components/schemas/actors/DefaultRunOptions.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ properties:
1414
memoryMbytes:
1515
type: number
1616
example: 2048
17+
restartOnError:
18+
type: boolean
19+
nullable: true
20+
example: false

apify-api/openapi/components/schemas/actors/UpdateActorRequest.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ properties:
4747
description: ''
4848
nullable: true
4949
defaultRunOptions:
50-
oneOf:
51-
- nullable: true
52-
- $ref: ./DefaultRunOptions.yaml
50+
nullable: true
51+
$ref: ./DefaultRunOptions.yaml
5352
taggedBuilds:
5453
type: object
5554
description: |

apify-api/openapi/paths/actors/acts.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ post:
142142
isPublic: false
143143
seoTitle: My Actor
144144
seoDescription: My Actor is the best
145-
restartOnError: false
146145
versions:
147146
- versionNumber: '0.0'
148147
sourceType: SOURCE_FILES
@@ -161,6 +160,7 @@ post:
161160
build: latest
162161
timeoutSecs: 3600
163162
memoryMbytes: 2048
163+
restartOnError: false
164164
required: true
165165
responses:
166166
'201':
@@ -183,7 +183,6 @@ post:
183183
name: MyActor
184184
username: jane35
185185
description: My favourite Actor!
186-
restartOnError: false
187186
isPublic: false
188187
createdAt: '2019-07-08T11:27:57.401Z'
189188
modifiedAt: '2019-07-08T14:01:05.546Z'
@@ -225,6 +224,7 @@ post:
225224
build: latest
226225
timeoutSecs: 3600
227226
memoryMbytes: 2048
227+
restartOnError: false
228228
exampleRunInput:
229229
body: '{ "helloWorld": 123 }'
230230
contentType: application/json; charset=utf-8

0 commit comments

Comments
 (0)