validatePlatformEventSubscriptions
validatePlatformEventSubscriptions(
scan,eventBusFields?):PlatformEventSubscriptionIssue[]
Defined in: packages/simply-aep-core/src/at4dxPlatformEventSubscriptionResolve.ts:287
Validate a scan’s PlatformEvents_Subscription__mdt records for wiring problems list doesn’t fail
on: a record with a blank/unrecognized EventBus__c/Consumer__c/MatcherRule__c, a matcher rule
that dereferences a blank match field (real NullPointerException risk), a MatchEventBus record
the distributor’s pre-filter can never admit, an event bus missing the fields the distributor reads,
two records sharing a Consumer__c, and the same DeveloperName defined more than once.
non-conforming-event-bus only fires for a bus present in eventBusFields — see EventBusFields.
Parameters
Section titled “Parameters”Pick<PlatformEventSubscriptionLocalScanResult, "records" | "malformed">
A scan result envelope ({ records, malformed }, as returned by scanOrgPlatformEventSubscriptions/scanLocalPlatformEventSubscriptions).
eventBusFields?
Section titled “eventBusFields?”Optional: each event bus’s known field names, for non-conforming-event-bus.
Returns
Section titled “Returns”PlatformEventSubscriptionIssue[]
One issue per problem found. Empty when nothing’s wrong.