Support input schema defaults locally in Actor.getInput()
#287
Labels
product roadmap
Issues synchronized to product roadmap.
t-tooling
Issues with this label are in the ownership of the tooling team.
Currently, the input schema is ignored locally, and to respect the defaults inside it, you need to use the Apify CLI to run the actor, which creates the INPUT.json file based on those defaults when missing.
Implement input schema support on the SDK level, so this works on the fly if the INPUT.json file is missing. If it's there, we should still fill in the missing fields that have defaults in the input schema.
The goal of this PR is to unify the local vs platform behavior. As a nice side effect, there shouldn't be any need to use the Apify CLI to run the actor, as
npm start
should behave the same with this implemented.The text was updated successfully, but these errors were encountered: