Repository navigation
fix(parameters): return an error instead of panicking on a non-string type field - #3516
Merged
Yuan325 merged 5 commits intoJul 7, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request improves the robustness of parameter parsing in internal/util/parameters/parameters.go by safely asserting that the type field is a string, preventing potential panics when a non-string type is provided. A corresponding unit test has been added to verify this behavior. There are no review comments, and I have no additional feedback to provide.
he-yufeng
force-pushed
the
fix/parameter-type-non-string-panic
branch
from
June 25, 2026 04:50
4d9aaf8 to
7a06d30
Compare
Yuan325
approved these changes
Jul 7, 2026
Yuan325
left a comment
Contributor
There was a problem hiding this comment.
Hi @he-yufeng , thank you for your contributions
Contributor
|
/gcbrun |
1 similar comment
Contributor
|
/gcbrun |
Yuan325
enabled auto-merge (squash)
July 7, 2026 03:33
Yuan325
added a commit
that referenced
this pull request
Jul 16, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([#2610](#2610)) ([f3e7ca9](f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([#2961](#2961)) ([351de00](351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([#3451](#3451)) ([8cffcef](8cffcef)) * **source/postgres:** Add optional connectTimeout ([#3620](#3620)) ([b574b07](b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([#3229](#3229)) ([6cbe1c2](6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([#3574](#3574)) ([721c204](721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([#3504](#3504)) ([5cee0d2](5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([#3503](#3503)) ([1ddfbe9](1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([#3512](#3512)) ([4034d6f](4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([#3516](#3516)) ([66a0d53](66a0d53)) * **source/looker:** Dynamically resolve public host URL ([#3603](#3603)) ([0428afd](0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([#3594](#3594)) ([0975d0a](0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com>
github-actions Bot
pushed a commit
that referenced
this pull request
Jul 16, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([#2610](#2610)) ([f3e7ca9](f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([#2961](#2961)) ([351de00](351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([#3451](#3451)) ([8cffcef](8cffcef)) * **source/postgres:** Add optional connectTimeout ([#3620](#3620)) ([b574b07](b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([#3229](#3229)) ([6cbe1c2](6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([#3574](#3574)) ([721c204](721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([#3504](#3504)) ([5cee0d2](5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([#3503](#3503)) ([1ddfbe9](1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([#3512](#3512)) ([4034d6f](4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([#3516](#3516)) ([66a0d53](66a0d53)) * **source/looker:** Dynamically resolve public host URL ([#3603](#3603)) ([0428afd](0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([#3594](#3594)) ([0975d0a](0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> fbe2b21
github-actions Bot
pushed a commit
to rodineyw/mcp-toolbox
that referenced
this pull request
Jul 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](googleapis/mcp-toolbox@v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([googleapis#2610](googleapis#2610)) ([f3e7ca9](googleapis@f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([googleapis#2961](googleapis#2961)) ([351de00](googleapis@351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([googleapis#3451](googleapis#3451)) ([8cffcef](googleapis@8cffcef)) * **source/postgres:** Add optional connectTimeout ([googleapis#3620](googleapis#3620)) ([b574b07](googleapis@b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([googleapis#3229](googleapis#3229)) ([6cbe1c2](googleapis@6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([googleapis#3574](googleapis#3574)) ([721c204](googleapis@721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([googleapis#3504](googleapis#3504)) ([5cee0d2](googleapis@5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([googleapis#3503](googleapis#3503)) ([1ddfbe9](googleapis@1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([googleapis#3512](googleapis#3512)) ([4034d6f](googleapis@4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([googleapis#3516](googleapis#3516)) ([66a0d53](googleapis@66a0d53)) * **source/looker:** Dynamically resolve public host URL ([googleapis#3603](googleapis#3603)) ([0428afd](googleapis@0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([googleapis#3594](googleapis#3594)) ([0975d0a](googleapis@0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> fbe2b21
github-actions Bot
pushed a commit
to Jaleel-zhu/genai-toolbox
that referenced
this pull request
Jul 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](googleapis/mcp-toolbox@v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([googleapis#2610](googleapis#2610)) ([f3e7ca9](googleapis@f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([googleapis#2961](googleapis#2961)) ([351de00](googleapis@351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([googleapis#3451](googleapis#3451)) ([8cffcef](googleapis@8cffcef)) * **source/postgres:** Add optional connectTimeout ([googleapis#3620](googleapis#3620)) ([b574b07](googleapis@b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([googleapis#3229](googleapis#3229)) ([6cbe1c2](googleapis@6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([googleapis#3574](googleapis#3574)) ([721c204](googleapis@721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([googleapis#3504](googleapis#3504)) ([5cee0d2](googleapis@5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([googleapis#3503](googleapis#3503)) ([1ddfbe9](googleapis@1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([googleapis#3512](googleapis#3512)) ([4034d6f](googleapis@4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([googleapis#3516](googleapis#3516)) ([66a0d53](googleapis@66a0d53)) * **source/looker:** Dynamically resolve public host URL ([googleapis#3603](googleapis#3603)) ([0428afd](googleapis@0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([googleapis#3594](googleapis#3594)) ([0975d0a](googleapis@0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> fbe2b21
github-actions Bot
pushed a commit
to pepe57/genai-toolbox
that referenced
this pull request
Jul 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](googleapis/mcp-toolbox@v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([googleapis#2610](googleapis#2610)) ([f3e7ca9](googleapis@f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([googleapis#2961](googleapis#2961)) ([351de00](googleapis@351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([googleapis#3451](googleapis#3451)) ([8cffcef](googleapis@8cffcef)) * **source/postgres:** Add optional connectTimeout ([googleapis#3620](googleapis#3620)) ([b574b07](googleapis@b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([googleapis#3229](googleapis#3229)) ([6cbe1c2](googleapis@6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([googleapis#3574](googleapis#3574)) ([721c204](googleapis@721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([googleapis#3504](googleapis#3504)) ([5cee0d2](googleapis@5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([googleapis#3503](googleapis#3503)) ([1ddfbe9](googleapis@1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([googleapis#3512](googleapis#3512)) ([4034d6f](googleapis@4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([googleapis#3516](googleapis#3516)) ([66a0d53](googleapis@66a0d53)) * **source/looker:** Dynamically resolve public host URL ([googleapis#3603](googleapis#3603)) ([0428afd](googleapis@0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([googleapis#3594](googleapis#3594)) ([0975d0a](googleapis@0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> fbe2b21
github-actions Bot
pushed a commit
to CaffeeLake/genai-toolbox
that referenced
this pull request
Jul 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](googleapis/mcp-toolbox@v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([googleapis#2610](googleapis#2610)) ([f3e7ca9](googleapis@f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([googleapis#2961](googleapis#2961)) ([351de00](googleapis@351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([googleapis#3451](googleapis#3451)) ([8cffcef](googleapis@8cffcef)) * **source/postgres:** Add optional connectTimeout ([googleapis#3620](googleapis#3620)) ([b574b07](googleapis@b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([googleapis#3229](googleapis#3229)) ([6cbe1c2](googleapis@6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([googleapis#3574](googleapis#3574)) ([721c204](googleapis@721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([googleapis#3504](googleapis#3504)) ([5cee0d2](googleapis@5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([googleapis#3503](googleapis#3503)) ([1ddfbe9](googleapis@1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([googleapis#3512](googleapis#3512)) ([4034d6f](googleapis@4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([googleapis#3516](googleapis#3516)) ([66a0d53](googleapis@66a0d53)) * **source/looker:** Dynamically resolve public host URL ([googleapis#3603](googleapis#3603)) ([0428afd](googleapis@0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([googleapis#3594](googleapis#3594)) ([0975d0a](googleapis@0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> fbe2b21
github-actions Bot
pushed a commit
to bhardwajRahul/genai-toolbox
that referenced
this pull request
Jul 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](googleapis/mcp-toolbox@v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([googleapis#2610](googleapis#2610)) ([f3e7ca9](googleapis@f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([googleapis#2961](googleapis#2961)) ([351de00](googleapis@351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([googleapis#3451](googleapis#3451)) ([8cffcef](googleapis@8cffcef)) * **source/postgres:** Add optional connectTimeout ([googleapis#3620](googleapis#3620)) ([b574b07](googleapis@b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([googleapis#3229](googleapis#3229)) ([6cbe1c2](googleapis@6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([googleapis#3574](googleapis#3574)) ([721c204](googleapis@721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([googleapis#3504](googleapis#3504)) ([5cee0d2](googleapis@5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([googleapis#3503](googleapis#3503)) ([1ddfbe9](googleapis@1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([googleapis#3512](googleapis#3512)) ([4034d6f](googleapis@4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([googleapis#3516](googleapis#3516)) ([66a0d53](googleapis@66a0d53)) * **source/looker:** Dynamically resolve public host URL ([googleapis#3603](googleapis#3603)) ([0428afd](googleapis@0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([googleapis#3594](googleapis#3594)) ([0975d0a](googleapis@0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> fbe2b21
github-actions Bot
pushed a commit
to CrazyForks/genai-toolbox
that referenced
this pull request
Jul 17, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](googleapis/mcp-toolbox@v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([googleapis#2610](googleapis#2610)) ([f3e7ca9](googleapis@f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([googleapis#2961](googleapis#2961)) ([351de00](googleapis@351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([googleapis#3451](googleapis#3451)) ([8cffcef](googleapis@8cffcef)) * **source/postgres:** Add optional connectTimeout ([googleapis#3620](googleapis#3620)) ([b574b07](googleapis@b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([googleapis#3229](googleapis#3229)) ([6cbe1c2](googleapis@6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([googleapis#3574](googleapis#3574)) ([721c204](googleapis@721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([googleapis#3504](googleapis#3504)) ([5cee0d2](googleapis@5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([googleapis#3503](googleapis#3503)) ([1ddfbe9](googleapis@1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([googleapis#3512](googleapis#3512)) ([4034d6f](googleapis@4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([googleapis#3516](googleapis#3516)) ([66a0d53](googleapis@66a0d53)) * **source/looker:** Dynamically resolve public host URL ([googleapis#3603](googleapis#3603)) ([0428afd](googleapis@0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([googleapis#3594](googleapis#3594)) ([0975d0a](googleapis@0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> fbe2b21
duwenxin99
pushed a commit
that referenced
this pull request
Jul 23, 2026
🤖 I have created a release *beep* *boop* --- ## [1.7.0](v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([#2610](#2610)) ([f3e7ca9](f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([#2961](#2961)) ([351de00](351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([#3451](#3451)) ([8cffcef](8cffcef)) * **source/postgres:** Add optional connectTimeout ([#3620](#3620)) ([b574b07](b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([#3229](#3229)) ([6cbe1c2](6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([#3574](#3574)) ([721c204](721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([#3504](#3504)) ([5cee0d2](5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([#3503](#3503)) ([1ddfbe9](1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([#3512](#3512)) ([4034d6f](4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([#3516](#3516)) ([66a0d53](66a0d53)) * **source/looker:** Dynamically resolve public host URL ([#3603](#3603)) ([0428afd](0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([#3594](#3594)) ([0975d0a](0975d0a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com> Co-authored-by: Yuan Teoh <45984206+Yuan325@users.noreply.github.com>
social4hyq
pushed a commit
to social4hyq/homebrew-core
that referenced
this pull request
Sep 20, 2026
mcp-toolbox 1.7.0 Created-by: HarmonybrewBot Commit-by: HarmonybrewBot Merged-by: HarmonybrewBot Description: Created by `brew bump` --- Created with `brew bump-formula-pr`.release notes
## [1.7.0](googleapis/mcp-toolbox@v1.6.0...v1.7.0) (2026-07-16) #### Features * Add `quotaProject` support for BigQuery and Looker conversational analytics ([#2610](googleapis/mcp-toolbox#2610)) ([f3e7ca9](googleapis/mcp-toolbox@f3e7ca9)) * **arcadedb:** Add arcadedb source and tools ([#2961](googleapis/mcp-toolbox#2961)) ([351de00](googleapis/mcp-toolbox@351de00)) * **cmd/internal,docs:** Add warning log that prebuilt tools are for developer use ([#3451](googleapis/mcp-toolbox#3451)) ([8cffcef](googleapis/mcp-toolbox@8cffcef)) * **source/postgres:** Add optional connectTimeout ([#3620](googleapis/mcp-toolbox#3620)) ([b574b07](googleapis/mcp-toolbox@b574b07)) * **tool/clickhouse-sql:** Add native vector embedding support ([#3229](googleapis/mcp-toolbox#3229)) ([6cbe1c2](googleapis/mcp-toolbox@6cbe1c2)) * **tool/dataplex-update-data-product,tool/dataplex-create-data-asset,tool/dataplex-update-data-asset:** Add update data product, create data asset, and update data asset tools for knowledge catalog source ([#3574](googleapis/mcp-toolbox#3574)) ([721c204](googleapis/mcp-toolbox@721c204)) * **tools/dataplex-create-data-product:** Add dataplex-create-data-product tool ([#3504](googleapis/mcp-toolbox#3504)) ([5cee0d2](googleapis/mcp-toolbox@5cee0d2)) * **tools/dataplex-get-data-asset:** Add dataplex-get-data-asset tool ([#3503](googleapis/mcp-toolbox#3503)) ([1ddfbe9](googleapis/mcp-toolbox@1ddfbe9)) ### Bug Fixes * **parameters:** Report the offending value in array/map type errors ([#3512](googleapis/mcp-toolbox#3512)) ([4034d6f](googleapis/mcp-toolbox@4034d6f)) * **parameters:** Return an error instead of panicking on a non-string type field ([#3516](googleapis/mcp-toolbox#3516)) ([66a0d53](googleapis/mcp-toolbox@66a0d53)) * **source/looker:** Dynamically resolve public host URL ([#3603](googleapis/mcp-toolbox#3603)) ([0428afd](googleapis/mcp-toolbox@0428afd)) * **tool/looker-run-dashboard:** Add support for SQL Runner query tiles ([#3594](googleapis/mcp-toolbox#3594)) ([0975d0a](googleapis/mcp-toolbox@0975d0a)) | **OS/Architecture** | **Description** | **SHA256 Hash** | | --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------- | | [linux/amd64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.7.0/linux/amd64/toolbox) ([Signature](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.7.0/linux/amd64/toolbox.asc)) | For **Linux** systems running on **Intel/AMD 64-bit processors**. | ec24af08ebb9fc9fbeae8d47bc3cb74e6ba0b028884bbbcfb2c14ad1e1fb117d | | [darwin/arm64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.7.0/darwin/arm64/toolbox) | For **macOS** systems running on **Apple Silicon** (M1, M2, M3, etc.) processors. | df337f16e9bba23163ab543ade94f1a685b7d07baa88f19b37fa154ef686793e | | [darwin/amd64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.7.0/darwin/amd64/toolbox) | For **macOS** systems running on **Intel processors**. | 2dba9b6ce39938a307fec9f66aea9973c115cadd1dccca0575e87b2bded28b21 | | [windows/amd64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.7.0/windows/amd64/toolbox.exe) | For **Windows** systems running on **Intel/AMD 64-bit processors**. | d784d56db0497de5870f19884fe83765f1eb97dd39b963d47e813f7e11f5a0a2 | | [windows/arm64](https://storage.googleapis.com/mcp-toolbox-for-databases/v1.7.0/windows/arm64/toolbox.exe) | For **Windows** systems running on **ARM 64-bit processors**. | 1eac04aa9555611805ad278a91b743dcb232201a327d201bc0cd5dd1a5df60ac |View the full release notes at https://github.com/googleapis/mcp-toolbox/releases/tag/v1.7.0">https://github.com/googleapis/mcp-toolbox/releases/tag/v1.7.0.
>
See merge request: Harmonybrew/homebrew-core!14492
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
parseParamFromDelayedUnmarshalerreads thetypefield from a parameter map and passes it straight toParseParameterwith an unchecked type assertion:If a tools file declares a parameter whose
typeis not a string (for exampletype: 123from a YAML typo, ortype:left as a mapping),t.(string)panics withinterface conversion: interface {} is int, not stringinstead of surfacing a config error. The panic propagates out ofUnmarshalYAML, so a single malformed parameter takes down config loading with a stack trace rather than a readable message.This is inconsistent with the rest of the function and with
ParseParameteritself: the missing-typecase right above already returns a clean error, andParseParameter's switch has a default branch that reports unknown types as errors. Only the string assertion was unguarded.The fix uses the comma-ok form and returns the same style of error the surrounding code already uses:
Added a
TestFailParametersUnmarshalcase ("common parameter with non-string type") that feeds an integertypeand expects the error. I confirmed it panics onmainbefore the change and passes after; the fullinternal/util/parameterspackage still passes andgofmt/go vetare clean.Note this is a separate concern from #3512, which also touches
parameters.gobut in a different function (the array/map element parsing paths). No overlap with that change.PR Checklist