Skip to content

fix: bump incur to 0.4.5 to fix misleading validation errors#82

Merged
bensnell-stripe merged 1 commit intomainfrom
bensnell/fix-validation-error-message
May 7, 2026
Merged

fix: bump incur to 0.4.5 to fix misleading validation errors#82
bensnell-stripe merged 1 commit intomainfrom
bensnell/fix-validation-error-message

Conversation

@bensnell-stripe
Copy link
Copy Markdown
Contributor

Summary

  • Bumps incur from 0.4.1 to 0.4.5 to pick up upstream fix (incur PR #138)
  • Fixes the bug where providing a --context that's too short (< 100 chars) incorrectly reported Error: missing required argument <context> instead of Error: invalid value for --context: Too small: expected string to have >=100 characters

Root cause

[email protected]'s TTY error formatter (formatHumanValidationError) unconditionally printed "missing required argument" for every fieldError, regardless of whether the field was actually missing or just failed validation. Fixed upstream in [email protected].

Test plan

  • pnpm run test — all 93 tests pass
  • pnpm run typecheck — clean
  • Manual test: link-cli spend-request create --context "too short" ... now shows Error: invalid value for --context: Too small: expected string to have >=100 characters
  • Manual test: omitting --context entirely still shows Error: missing required option --context

Fixes LINK_AI_WALLET-208

When context was provided but too short (< 100 chars), the CLI
incorrectly reported "Error: missing required argument <context>"
instead of the actual Zod validation message. This was fixed
upstream in incur PR #138 ([email protected]) which distinguishes
between truly missing fields and invalid values.

Fixes LINK_AI_WALLET-208

Committed-By-Agent: claude
@bensnell-stripe bensnell-stripe requested a review from a team as a code owner May 7, 2026 16:23
@bensnell-stripe bensnell-stripe merged commit dac4966 into main May 7, 2026
5 checks passed
@bensnell-stripe bensnell-stripe deleted the bensnell/fix-validation-error-message branch May 7, 2026 16:56
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.

2 participants