Skip to content

Commit a74a75f

Browse files
committed
Use response schema in actor-builds endpoint as well
1 parent e43a091 commit a74a75f

4 files changed

Lines changed: 31 additions & 4 deletions

File tree

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ get:
5353
"403":
5454
$ref: ../../components/responses/Forbidden.yaml
5555
"404":
56-
$ref: ../../components/responses/NotFound.yaml
56+
description: Not found - the requested resource was not found.
57+
content:
58+
application/json:
59+
schema:
60+
oneOf:
61+
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
5762
deprecated: false
5863
x-legacy-doc-urls:
5964
- https://docs.apify.com/api/v2#/reference/actor-builds/build-object/get-build
@@ -95,7 +100,12 @@ delete:
95100
"401":
96101
$ref: ../../components/responses/Unauthorized.yaml
97102
"404":
98-
$ref: ../../components/responses/NotFound.yaml
103+
description: Not found - the requested resource was not found.
104+
content:
105+
application/json:
106+
schema:
107+
oneOf:
108+
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
99109
deprecated: false
100110
x-legacy-doc-urls:
101111
- https://docs.apify.com/api/v2#/reference/actor-builds/delete-build/delete-build

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@abort.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ post:
3333
$ref: ../../components/responses/Unauthorized.yaml
3434
"403":
3535
$ref: ../../components/responses/Forbidden.yaml
36+
"404":
37+
description: Not found - the requested resource was not found.
38+
content:
39+
application/json:
40+
schema:
41+
oneOf:
42+
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
3643
deprecated: false
3744
x-legacy-doc-urls:
3845
- https://docs.apify.com/api/v2#/reference/actor-builds/abort-build/abort-build

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@log.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,12 @@ get:
5555
"400":
5656
$ref: ../../components/responses/BadRequest.yaml
5757
"404":
58-
$ref: ../../components/responses/NotFound.yaml
58+
description: Not found - the requested resource was not found.
59+
content:
60+
application/json:
61+
schema:
62+
oneOf:
63+
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
5964
deprecated: false
6065
x-legacy-doc-urls:
6166
- https://docs.apify.com/api/v2#/reference/actor-builds/build-log/get-log

apify-api/openapi/paths/actor-builds/actor-builds@{buildId}@openapi.json.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,12 @@ get:
3939
"400":
4040
$ref: ../../components/responses/BadRequest.yaml
4141
"404":
42-
$ref: ../../components/responses/NotFound.yaml
42+
description: Not found - the requested resource was not found.
43+
content:
44+
application/json:
45+
schema:
46+
oneOf:
47+
- $ref: "../../components/schemas/common/errors/ActorErrors.yaml#/ActorBuildNotFoundError"
4348
x-js-parent: BuildClient
4449
x-js-name: getOpenApiDefinition
4550
x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/BuildClient#getOpenApiDefinition

0 commit comments

Comments
 (0)