Skip to content

Conversation

@mfori
Copy link
Member

@mfori mfori commented Dec 18, 2025

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)

@mfori mfori requested review from JJetmar, Copilot and tobice December 18, 2025 13:50
@mfori mfori self-assigned this Dec 18, 2025
@mfori mfori added adhoc Ad-hoc unplanned task added during the sprint. t-console Issues with this label are in the ownership of the console team. labels Dec 18, 2025
@github-actions github-actions bot added this to the 130th sprint - Console team milestone Dec 18, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds two missing properties (dockerContextDir and changelog) to the actor schema definition that were documented in the official Apify documentation but missing from the JSON schema implementation.

Key changes:

  • Added dockerContextDir field to actor schema for specifying Docker build context directory
  • Added changelog field to actor schema for specifying changelog file path
  • Both fields are defined as string type without default values to avoid breaking changes

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/json_schemas/src/actor.schema.ts Added dockerContextDir and changelog string properties to the TypeScript schema definition
packages/json_schemas/schemas/actor.schema.json Added dockerContextDir and changelog string properties to the JSON schema (auto-generated from TypeScript source)

After thoroughly reviewing the changes, I found no issues with this pull request. The implementation is:

  • Consistent: Both the TypeScript and JSON schema files are properly synchronized
  • Correct: The new fields follow the same pattern as similar properties (dockerfile and readme)
  • Safe: No default values are added, avoiding potential breaking changes as noted in the PR description
  • Complete: Both files are updated appropriately, with the JSON file being auto-generated from the TypeScript source

The changes align well with the existing schema structure and naming conventions.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions github-actions bot added the tested Temporary label used only programatically for some analytics. label Dec 18, 2025
"type": "string",
"default": "../Dockerfile"
},
"dockerContextDir": {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are optional, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@mfori mfori merged commit 0c40567 into master Dec 18, 2025
9 checks passed
@mfori mfori deleted the feat/missing-actor-js-properties branch December 18, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-console Issues with this label are in the ownership of the console team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants