feat: add Property binding resource support to SDK#1486
Open
feat: add Property binding resource support to SDK#1486
Conversation
Adds support for the Property resource type in bindings.json, enabling users to read connector-defined property values (e.g. SharePoint folder IDs) without writing custom helpers. - Extend BindingResourceValue with optional description/propertyName fields - Add PropertyResourceOverwrite to the resource overwrite discriminated union - Add BindingsService with get_property() that reads from bindings.json and respects runtime resource overwrites via the existing ContextVar - Expose sdk.bindings as a cached_property on the UiPath class - Update bindings.spec.md to document Property as the 7th resource type - Add unit tests covering file reads, suffix key matching, runtime overwrites, and error cases
2590e00 to
42d2acc
Compare
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.
Summary
sdk.bindings.get_property(key, sub_property?)— a generic API for reading connector-defined Property binding values frombindings.jsonat runtimeBindingResourceValuewith optionaldescriptionandpropertyNamefields present in Property bindingsPropertyResourceOverwriteto the resource overwrite discriminated union so runtime overwrites work for Property resourcesPropertyas the 7th resource type inbindings.spec.mdget_binding_property()function seen in vertical solutionsChanges
runtime_schema.py—BindingResourceValuegains optionaldescription/propertyNamefields_bindings.py— newPropertyResourceOverwriteclass; added toResourceOverwriteUnion_bindings_service.py(new) —BindingsService.get_property()reads bindings.json, supports exact and suffix key matching, and honours runtime overwrites via the existing_resource_overwritesContextVar_uipath.py— exposessdk.bindingsas acached_propertybindings.spec.md— full documentation for the Property resource type including key format, value structure, metadata fields, and SDK usage examplestest_property_bindings.py(new) — 13 unit tests covering happy paths, suffix matching, runtime overwrites, and error casesTest plan
BindingsServiceandPropertyResourceOverwriteKeyErrorraised for unknown keys and sub-propertiesDevelopment Packages
uipath-platform
uipath