Skip to content

fix(schema): mark --to-date as required on historical-token-screener#440

Merged
kome12 merged 3 commits into
mainfrom
fix/historical-token-screener-to-date-optional
May 18, 2026
Merged

fix(schema): mark --to-date as required on historical-token-screener#440
kome12 merged 3 commits into
mainfrom
fix/historical-token-screener-to-date-optional

Conversation

@kome12
Copy link
Copy Markdown
Contributor

@kome12 kome12 commented May 18, 2026

Summary

Bug: src/schema.json marked --to-date as optional on historical-token-screener, but both the CLI and the API require it. This mismatch could mislead AI agents and tooling that read the schema.

Fix:

  • Updated src/schema.json to add "required": true on to-date for historical-token-screener
  • Reverted the prior commits that incorrectly removed the CLI-side requireOptions guard and help text changes

Verified via CLI:

  • nansen research historical-token-screener --timeframe-days 30 --chains solana → clear CLI error: Required: --to-date
  • nansen research historical-token-screener --timeframe-days 30 --to-date 2026-05-18 --chains solana → succeeds

Test plan

  • npm test passes (1473 passed, 2 skipped)
  • npm run lint passes
  • CLI rejects calls without --to-date with a clear error
  • CLI succeeds with --to-date provided

🤖 Generated with Claude Code

Ko Miyatake (Openclaw Bot) and others added 2 commits May 18, 2026 05:38
`requireOptions` incorrectly listed `to-date` as required, causing the
command to reject valid calls that omit the optional `--to-date` flag.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@kome12 kome12 self-assigned this May 18, 2026
The API requires `to_date` — the schema incorrectly marked it optional.
Reverts the code/test changes from the prior commits and fixes the
schema to match CLI and API behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@kome12 kome12 changed the title fix(research): make --to-date optional on historical-token-screener fix(schema): mark --to-date as required on historical-token-screener May 18, 2026
@kome12 kome12 requested review from TimNooren and gulshngill May 18, 2026 06:18
@kome12 kome12 merged commit 8ad91ee into main May 18, 2026
7 checks passed
@kome12 kome12 deleted the fix/historical-token-screener-to-date-optional branch May 18, 2026 06:26
@github-actions github-actions Bot mentioned this pull request May 18, 2026
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.

1 participant