Skip to content

feat(destination): Add parameter to bypass service retrieval from VCAP#6332

Merged
davidkna-sap merged 6 commits intomainfrom
davidkna-sap_destination-provider
Feb 23, 2026
Merged

feat(destination): Add parameter to bypass service retrieval from VCAP#6332
davidkna-sap merged 6 commits intomainfrom
davidkna-sap_destination-provider

Conversation

@davidkna-sap
Copy link
Member

service: DestinationFromServiceBindingOptions['service']
): Service | undefined {
if (typeof service === 'string') {
return JSON.parse(service) as Service;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[req] My original thought was, that the string part of service is a replacement for destinationName. I even think we could xor service and destination name... Otherwise I think we should not allow passing a JSON string to be parsed - we can expect users to pass in a service as an object.

@davidkna-sap davidkna-sap force-pushed the davidkna-sap_destination-provider branch from b3b4ca8 to 72ce4a1 Compare February 17, 2026 14:00
Comment on lines 100 to 108
} & Xor<
{
/**
* A service binding to use directly instead of looking it up by name. Mandatory if no destination name is provided.
*/
service: Service;
},
Pick<DestinationFetchOptions, 'destinationName'>
>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[req] Could you add a type test for this to make sure that it works as expected? I am not sure from merely looking at this...

@davidkna-sap davidkna-sap changed the title feat(destination): Add parameter to bypass retrieval from VCAP feat(destination): Add parameter to bypass service retrieval from VCAP Feb 18, 2026
Copy link
Contributor

@marikaner marikaner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@davidkna-sap davidkna-sap enabled auto-merge (squash) February 23, 2026 07:39
@davidkna-sap davidkna-sap merged commit 962cdcb into main Feb 23, 2026
15 checks passed
@davidkna-sap davidkna-sap deleted the davidkna-sap_destination-provider branch February 23, 2026 07:43
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.

3 participants