Skip to content

Conversation

@lokanandaprabhu
Copy link
Member

Hey, I just made a Pull Request!

Fixes: https://issues.redhat.com/browse/RHIDP-11054

Add object type support in ui:props for fetch:response:* properties (RHIDP-11054)

Type System Enhancement:

  • Updated UiProps type to accept JsonValue instead of string for fetch:response:* properties
  • Enables using objects, arrays, and other JSON types in ui:props, not just strings
  • Maintains full backward compatibility with existing string-based selectors

Runtime Safety:

  • Added runtime validation in useTemplateUnitEvaluator to ensure selectors are strings when evaluated as JSONata expressions
  • Provides clear error messages when invalid types are used

Documentation:

  • Updated orchestratorFormWidgets.md to document object type support
  • Added examples showing flexible ui:props configurations

This change allows users to reference object attributes more easily in ui:props while maintaining type safety and backward compatibility.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or Updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)

@rhdh-gh-app
Copy link

rhdh-gh-app bot commented Dec 9, 2025

Important

This PR includes changes that affect public-facing API. Please ensure you are adding/updating documentation for new features or behavior.

Changed Packages

Package Name Package Path Changeset Bump Current Version
@red-hat-developer-hub/backstage-plugin-orchestrator-form-widgets workspaces/orchestrator/plugins/orchestrator-form-widgets minor v1.5.0

@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 9, 2025

@mareklibra mareklibra merged commit 5c9f044 into redhat-developer:main Dec 9, 2025
9 checks passed
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