Skip to content

Commit 0c40567

Browse files
authored
feat(json_schemas): Add dockerContextDir and changelog to actor schema (#584)
It's missing in the schema, although it's in the documentation: https://docs.apify.com/platform/actors/development/actor-definition/actor-json#reference Reported here: https://apify.slack.com/archives/C0L33UM7Z/p1766044857082619 Note: I didn't set any `default` like `dockerfile` and `readme` properties have, as it could be a breaking change (but it looks like in the worker the default value is not taken into account)
1 parent 190ba56 commit 0c40567

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

packages/json_schemas/schemas/actor.schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,16 @@
4040
"type": "string",
4141
"default": "../Dockerfile"
4242
},
43+
"dockerContextDir": {
44+
"type": "string"
45+
},
4346
"readme": {
4447
"type": "string",
4548
"default": "../README.md"
4649
},
50+
"changelog": {
51+
"type": "string"
52+
},
4753
"minMemoryMbytes": {
4854
"type": "integer",
4955
"minimum": 128,

packages/json_schemas/src/actor.schema.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,16 @@ export const actorSchema = {
4545
type: 'string',
4646
default: '../Dockerfile',
4747
},
48+
dockerContextDir: {
49+
type: 'string',
50+
},
4851
readme: {
4952
type: 'string',
5053
default: '../README.md',
5154
},
55+
changelog: {
56+
type: 'string',
57+
},
5258
minMemoryMbytes: {
5359
type: 'integer',
5460
minimum: ACTOR_LIMITS.MIN_RUN_MEMORY_MBYTES,

test/actor_schema.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ describe('actor.json', () => {
2727
API_KEY: 'my-api-key',
2828
},
2929
dockerfile: '../Dockerfile',
30+
dockerContextDir: './docker',
3031
readme: '../README.md',
32+
changelog: '../CHANGELOG.md',
3133
minMemoryMbytes: 256,
3234
maxMemoryMbytes: 1024,
3335
input: {

0 commit comments

Comments
 (0)