Across several repos (to my current knowledge we have apify-core (?), apify-cli, and soon apify-sdk-js), we have duplicated code that deals with
- parsing the input schema through our JSON schema of Actor input
- figures out what fields have defaults and
- prefills the input objects with the defaults that are missing.
This code duplication is no bueno, especially since changes that happen in one spot may not propagate to other places without someone looking into it, manually replicating the logic and testing it out.
Ideally, we would unify that logic into the input_schema
package we already have, so that whichever project needs it can just import <whatever> from '@apify/shared-js/node'
or similar and can just do it™️.
(related-ish: #537, as we should expose this in a /node
export path for the shared-js package)