Skip to content

Commit

Permalink
fix: utilize validation handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Orzelius authored Mar 28, 2023
1 parent fd22084 commit 82e01cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions core/src/tasks/resolve-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,12 @@ export class ResolveActionTask<T extends Action> extends BaseActionTask<T, Resol
const actionRouter = router.getRouterForActionKind(resolvedAction.kind)
await actionRouter.validateActionOutputs(resolvedAction, "static", staticOutputs)

await actionRouter.callHandler({
handlerType: "validate",
params: { action: resolvedAction, graph: resolvedGraph, log: this.log, events: undefined },
defaultHandler: async (p) => ({}),
})

// TODO-G2B: avoid this private assignment
resolvedAction["_staticOutputs"] = staticOutputs

Expand Down

0 comments on commit 82e01cd

Please sign in to comment.