Skip to content

fix: allow tilde in inline JSON input - #1331

Open
kuntal1461 wants to merge 1 commit into
apify:masterfrom
kuntal1461:fix/inline-json-tilde-input
Open

fix: allow tilde in inline JSON input#1331
kuntal1461 wants to merge 1 commit into
apify:masterfrom
kuntal1461:fix/inline-json-tilde-input

Conversation

@kuntal1461

@kuntal1461 kuntal1461 commented Aug 16, 2026

Copy link
Copy Markdown

Fixes #1281

Summary

  • Allow inline JSON passed through --input to contain ~, including Actor IDs such as username~actor-name.
  • Preserve the existing validation for home-directory-style paths such as ~/input.json and ~user/input.json.
  • Add regression coverage at both the input resolver level and the local CLI apify run --input flow.

Validation

  • pnpm exec vitest run test/local/lib/resolve-input.test.ts
  • pnpm exec vitest run test/e2e/commands/actor/run-input.test.ts
  • pnpm run format
  • pnpm run lint
  • pnpm run build
  • pnpm run test:local

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--input rejects valid inline JSON as a "file path" when it contains ~ (e.g. any username~actor-name id)

2 participants