Skip to content

Conversation

@fmzchao
Copy link

@fmzchao fmzchao commented Jan 22, 2026

Summary

  • Fix missing connectionType metadata for list variable types in Script/Logic component

The mapTypeToSchema function was missing connectionType metadata for list types (list-text, list-number, list-boolean, list-json). This caused the component to fail when connecting to upstream components that output List<JSON> types (e.g., httpx's results output).

Changes:

  • Added connectionType for list/list-textList<Text>
  • Added connectionType for list-numberList<Number>
  • Added connectionType for list-booleanList<Boolean>
  • Added connectionType for list-jsonList<JSON> with allowAny: true

Testing

  • bun run test - All tests pass
  • bun run lint
  • bun run typecheck
  • Additional notes: Verified Script/Logic component can now connect to httpx's results output using list-json input type

Documentation

  • No documentation updates needed - this is a bug fix for existing functionality

The mapTypeToSchema function was missing connectionType metadata for
list-text, list-number, list-boolean, and list-json types. This caused
the Script/Logic component to fail when connecting to upstream components
that output List<JSON> (e.g., httpx results).

Changes:
- Add connectionType for list/list-text types
- Add connectionType for list-number type
- Add connectionType for list-boolean type
- Add connectionType for list-json type with allowAny flag

This enables proper port connections in the workflow builder UI.

Signed-off-by: fmzchao <root@7jdg.com>
@chatgpt-codex-connector
Copy link

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

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