You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f20deb2
Browse filesBrowse the repository at this point in the historyBrowse files
fix(openapi): add missing fields to the Actor definition schema (#3115)
The build stores the whole `actor.json` as `actorDefinition`, and `GET
/actor-builds/{buildId}` returns it in full, but the schema only
described part of it. This adds the missing fields: `title`,
`description`, `meta`, `output`, `storages.datasets`,
`storages.keyValueStore`, `webServerSchema`, and `webServerMcpPath`.
`meta` lives in its own `ActorDefinitionMeta` schema so generated
clients get a named model for it.
The Python client needs `webServerSchema` to read a Server Actor's
OpenAPI spec (apify/apify-client-python#1153). I checked the generated
Python models against this spec, and the client's type check and unit
tests pass.
*✍️ Drafted by Claude Code*
Copy file name to clipboardExpand all lines: apify-api/openapi/components/schemas/actors/ActorDefinition.yaml
+25Lines changed: 25 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,21 @@ properties:
9
9
name:
10
10
type: string
11
11
description: The name of the Actor.
12
+
title:
13
+
type: string
14
+
description: The human-readable display title of the Actor, shown in Apify Console and Apify Store.
15
+
description:
16
+
type: string
17
+
description: The description of the Actor.
12
18
version:
13
19
type: string
14
20
pattern: ^[0-9]+(\.[0-9]+)+$
15
21
description: The version of the Actor, typically a dot-separated sequence of numbers (e.g., `0.1`, `1.0`, or `0.0.1`).
16
22
buildTag:
17
23
type: string
18
24
description: The tag name to be applied to a successful build of the Actor. Defaults to 'latest' if not specified.
25
+
meta:
26
+
$ref: ./ActorDefinitionMeta.yaml
19
27
environmentVariables:
20
28
type: object
21
29
additionalProperties:
@@ -33,6 +41,9 @@ properties:
33
41
input:
34
42
type: [object, "null"]
35
43
description: The input schema object, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/input-schema)
44
+
output:
45
+
type: [object, "null"]
46
+
description: The output schema object, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/output-schema)
36
47
changelog:
37
48
type: [string, "null"]
38
49
description: The path to the CHANGELOG file displayed in the Actor's information tab.
@@ -42,6 +53,14 @@ properties:
42
53
dataset:
43
54
type: object
44
55
description: Defines the schema of items in your dataset, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema)
56
+
datasets:
57
+
type: object
58
+
additionalProperties:
59
+
type: object
60
+
description: Maps dataset aliases to the schemas of the Actor's datasets, the full specification can be found in [Apify docs](https://docs.apify.com/platform/storage/dataset-schema/multiple-datasets)
61
+
keyValueStore:
62
+
type: object
63
+
description: Defines the schema of the Actor's default key-value store, the full specification can be found in [Apify docs](https://docs.apify.com/platform/storage/key-value-store-schema)
45
64
defaultMemoryMbytes:
46
65
oneOf:
47
66
- type: string
@@ -60,3 +79,9 @@ properties:
60
79
usesStandbyMode:
61
80
type: boolean
62
81
description: Specifies whether Standby mode is enabled for the Actor.
82
+
webServerSchema:
83
+
type: object
84
+
description: The OpenAPI v3 specification of the web server running in the Actor, the full specification can be found in [Apify docs](https://docs.apify.com/platform/actors/development/actor-definition/web-server-schema)
85
+
webServerMcpPath:
86
+
type: string
87
+
description: The HTTP path where the Actor's web server exposes its MCP (Model Context Protocol) server, for example `/mcp`.
0 commit comments