Skip to content

Commit ff3dcd0

Browse files
committed
Improve request-queues schemas
1 parent febc2a7 commit ff3dcd0

8 files changed

Lines changed: 25 additions & 35 deletions

File tree

apify-api/openapi/components/schemas/request-queues/AddRequestResponse.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
allOf:
8-
- $ref: ./RequestOperationInfo.yaml
9-
- {}
7+
$ref: ./RequestOperationInfo.yaml

apify-api/openapi/components/schemas/request-queues/GetRequestQueueResponse.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
allOf:
8-
- $ref: ./RequestQueue.yaml
9-
- {}
7+
$ref: ./RequestQueue.yaml

apify-api/openapi/components/schemas/request-queues/GetRequestResponse.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
allOf:
8-
- $ref: ./RequestQueueItems.yaml
9-
- {}
7+
$ref: ./RequestQueueItems.yaml

apify-api/openapi/components/schemas/request-queues/RequestQueue.yaml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,6 @@ properties:
4747
type: string
4848
example: 'https://api.apify.com/v2/request-queues/27TmTznX9YPeAYhkC'
4949
stats:
50-
type: object
51-
properties:
52-
deleteCount:
53-
type: number
54-
example: 0
55-
headItemReadCount:
56-
type: number
57-
example: 5
58-
readCount:
59-
type: number
60-
example: 100
61-
storageBytes:
62-
type: number
63-
example: 1024
64-
writeCount:
65-
type: number
66-
example: 10
50+
$ref: ./RequestQueueStats.yaml
6751
generalAccess:
6852
$ref: ../common/GeneralAccessEnum.yaml

apify-api/openapi/components/schemas/request-queues/RequestQueueItems.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ properties:
4141
type: object
4242
nullable: true
4343
userData:
44-
allOf:
45-
- $ref: ./UserData.yaml
46-
- {}
44+
$ref: ./UserData.yaml
4745
handledAt:
4846
type: string
4947
nullable: true
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
title: RequestQueueStats
2+
type: object
3+
properties:
4+
deleteCount:
5+
type: number
6+
example: 0
7+
headItemReadCount:
8+
type: number
9+
example: 5
10+
readCount:
11+
type: number
12+
example: 100
13+
storageBytes:
14+
type: number
15+
example: 1024
16+
writeCount:
17+
type: number
18+
example: 10

apify-api/openapi/components/schemas/request-queues/UpdateRequestQueueResponse.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
allOf:
8-
- $ref: ./RequestQueue.yaml
9-
- {}
7+
$ref: ./RequestQueue.yaml

apify-api/openapi/components/schemas/request-queues/UpdateRequestResponse.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ required:
44
type: object
55
properties:
66
data:
7-
allOf:
8-
- $ref: ./RequestOperationInfo.yaml
9-
- {}
7+
$ref: ./RequestOperationInfo.yaml

0 commit comments

Comments
 (0)