Skip to content

refactor(tool): SchemaProperty minimum/maximum; migrate FuzzyFind - #321

Merged
Patel230 merged 1 commit into
mainfrom
fix/tool-schema-minmax
Sep 15, 2026
Merged

Patel230 merged 1 commit into
mainfrom
fix/tool-schema-minmax

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Follow-up to #320 (typed tool schemas).

  • Extends SchemaProperty with Minimum/Maximum (kept as interface{}, like Default, so literals survive verbatim) plus an advisory range check in validateSchema matching the existing soft-skip philosophy.
  • Migrates FuzzyFindTool to typed FuzzyFindInput + Schema()-backed Parameters() with parity tests locking the limit bounds (1/100). Malformed-input error text changes to the standard DecodeInput message; nothing asserted the old string.
  • Follow-up: extend the same pattern to the remaining hand-written schemas.

Verified: go vet, golangci-lint on the package (0 issues), full internal/tool suite, gofmt clean.

Extend SchemaProperty with Minimum/Maximum (interface{}, like Default, so
literals survive verbatim) plus an advisory range check in validateSchema
matching the existing soft-skip philosophy. Migrate FuzzyFindTool to a typed
FuzzyFindInput + Schema()-backed Parameters with parity tests locking the
limit bounds (1/100). Error text for malformed input changes from 'invalid
input' to the standard DecodeInput message; no test asserted the old string.
@Patel230
Patel230 merged commit 43a4725 into main Sep 15, 2026
25 checks passed
@Patel230
Patel230 deleted the fix/tool-schema-minmax branch September 15, 2026 21:59
Patel230 added a commit that referenced this pull request Oct 2, 2026
Extend SchemaProperty with Minimum/Maximum (interface{}, like Default, so
literals survive verbatim) plus an advisory range check in validateSchema
matching the existing soft-skip philosophy. Migrate FuzzyFindTool to a typed
FuzzyFindInput + Schema()-backed Parameters with parity tests locking the
limit bounds (1/100). Error text for malformed input changes from 'invalid
input' to the standard DecodeInput message; no test asserted the old string.
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