Skip to content

Commit 8fb8a2c

Browse files
committed
Update structure to eliminate Data and Item models
1 parent eed74b6 commit 8fb8a2c

43 files changed

Lines changed: 453 additions & 448 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title: BuildList
2+
allOf:
3+
- $ref: ../common/PaginationResponse.yaml
4+
- type: object
5+
required:
6+
- items
7+
properties:
8+
items:
9+
type: array
10+
items:
11+
$ref: ./BuildShort.yaml

apify-api/openapi/components/schemas/actor-builds/GetBuildListResponse.yaml

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,4 @@ required:
44
- data
55
properties:
66
data:
7-
type: object
8-
required:
9-
- total
10-
- offset
11-
- limit
12-
- desc
13-
- count
14-
- items
15-
properties:
16-
total:
17-
type: number
18-
example: 2
19-
offset:
20-
type: number
21-
example: 0
22-
limit:
23-
type: number
24-
example: 1000
25-
desc:
26-
type: boolean
27-
example: false
28-
count:
29-
type: number
30-
example: 2
31-
items:
32-
type: array
33-
items:
34-
$ref: ./BuildShort.yaml
35-
description: ''
7+
$ref: ./BuildList.yaml

apify-api/openapi/components/schemas/actor-builds/GetOpenApiResponse.yaml

Lines changed: 1 addition & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -263,86 +263,4 @@ properties:
263263
type: object
264264
properties:
265265
data:
266-
type: object
267-
properties:
268-
type:
269-
type: string
270-
example: object
271-
properties:
272-
type: object
273-
properties:
274-
id:
275-
type: object
276-
properties:
277-
type:
278-
type: string
279-
example: string
280-
actId:
281-
type: object
282-
properties:
283-
type:
284-
type: string
285-
example: string
286-
userId:
287-
type: object
288-
properties:
289-
type:
290-
type: string
291-
example: string
292-
startedAt:
293-
type: object
294-
properties:
295-
type:
296-
type: string
297-
example: string
298-
format:
299-
type: string
300-
example: date-time
301-
example:
302-
type: string
303-
example: '2025-01-08T00:00:00.000Z'
304-
finishedAt:
305-
type: object
306-
properties:
307-
type:
308-
type: string
309-
example: string
310-
format:
311-
type: string
312-
example: date-time
313-
example:
314-
type: string
315-
example: '2025-01-08T00:00:00.000Z'
316-
status:
317-
type: object
318-
properties:
319-
type:
320-
type: string
321-
example: string
322-
example:
323-
type: string
324-
example: 'READY'
325-
meta:
326-
type: object
327-
properties:
328-
type:
329-
type: string
330-
example: object
331-
properties:
332-
type: object
333-
properties:
334-
origin:
335-
type: object
336-
properties:
337-
type:
338-
type: string
339-
example: string
340-
example:
341-
type: string
342-
example: 'API'
343-
userAgent:
344-
type: object
345-
properties:
346-
type:
347-
type: string
348-
example: string
266+
$ref: ./RunsResponseSchemaDataProperties.yaml
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
title: RunsResponseSchemaDataProperties
2+
type: object
3+
properties:
4+
type:
5+
type: string
6+
example: object
7+
properties:
8+
type: object
9+
properties:
10+
id:
11+
type: object
12+
properties:
13+
type:
14+
type: string
15+
example: string
16+
actId:
17+
type: object
18+
properties:
19+
type:
20+
type: string
21+
example: string
22+
userId:
23+
type: object
24+
properties:
25+
type:
26+
type: string
27+
example: string
28+
startedAt:
29+
type: object
30+
properties:
31+
type:
32+
type: string
33+
example: string
34+
format:
35+
type: string
36+
example: date-time
37+
example:
38+
type: string
39+
example: '2025-01-08T00:00:00.000Z'
40+
finishedAt:
41+
type: object
42+
properties:
43+
type:
44+
type: string
45+
example: string
46+
format:
47+
type: string
48+
example: date-time
49+
example:
50+
type: string
51+
example: '2025-01-08T00:00:00.000Z'
52+
status:
53+
type: object
54+
properties:
55+
type:
56+
type: string
57+
example: string
58+
example:
59+
type: string
60+
example: 'READY'
61+
meta:
62+
type: object
63+
properties:
64+
type:
65+
type: string
66+
example: object
67+
properties:
68+
type: object
69+
properties:
70+
origin:
71+
type: object
72+
properties:
73+
type:
74+
type: string
75+
example: string
76+
example:
77+
type: string
78+
example: 'API'
79+
userAgent:
80+
type: object
81+
properties:
82+
type:
83+
type: string
84+
example: string

apify-api/openapi/components/schemas/actor-runs/GetUserRunsListResponse.yaml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
allOf:
8-
- $ref: "../common/PaginationResponse.yaml"
9-
- type: object
10-
required:
11-
- items
12-
properties:
13-
items:
14-
type: array
15-
items:
16-
$ref: "../actor-runs/RunShort.yaml"
7+
$ref: ./RunList.yaml
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
title: RunList
2+
allOf:
3+
- $ref: ../common/PaginationResponse.yaml
4+
- type: object
5+
required:
6+
- items
7+
properties:
8+
items:
9+
type: array
10+
items:
11+
$ref: ./RunShort.yaml
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
title: EnvVarList
2+
type: object
3+
required:
4+
- total
5+
- items
6+
properties:
7+
total:
8+
type: number
9+
example: 5
10+
items:
11+
type: array
12+
items:
13+
$ref: "./EnvVar.yaml"
14+
description: ''

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
type: object
8-
required:
9-
- total
10-
- items
11-
properties:
12-
total:
13-
type: number
14-
example: 5
15-
items:
16-
type: array
17-
items:
18-
$ref: "./EnvVar.yaml"
19-
description: ''
7+
$ref: ./EnvVarList.yaml

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

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
allOf:
8-
- $ref: "../common/PaginationResponse.yaml"
9-
- type: object
10-
required:
11-
- items
12-
properties:
13-
items:
14-
type: array
15-
items:
16-
$ref: "./ActorShort.yaml"
7+
$ref: ./ListOfActors.yaml

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
type: object
8-
required:
9-
- total
10-
- items
11-
properties:
12-
total:
13-
type: number
14-
example: 5
15-
items:
16-
type: array
17-
items:
18-
$ref: "./Version.yaml"
19-
description: ''
7+
$ref: ./VersionList.yaml

0 commit comments

Comments
 (0)