From 4f8202e8a4e980bd58796e3d61dec5425ba1a844 Mon Sep 17 00:00:00 2001 From: Jared O'Connell Date: Fri, 27 Sep 2024 13:39:50 -0400 Subject: [PATCH] Added doc comments for shared stage schema functions --- internal/step/foreach/provider.go | 1 - internal/step/shared_schema.go | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/internal/step/foreach/provider.go b/internal/step/foreach/provider.go index 4bd6649..d7ddb6a 100644 --- a/internal/step/foreach/provider.go +++ b/internal/step/foreach/provider.go @@ -772,7 +772,6 @@ func (r *runningStep) runOnInput() { } func (r *runningStep) processInput(inputData []any) { - // TODO: Transition to reusable functions r.logger.Debugf("Executing subworkflow for step %s...", r.runID) outputs, errors := r.executeSubWorkflows(inputData) diff --git a/internal/step/shared_schema.go b/internal/step/shared_schema.go index 4a6ab88..2fa97d3 100644 --- a/internal/step/shared_schema.go +++ b/internal/step/shared_schema.go @@ -2,6 +2,8 @@ package step import "go.flow.arcalot.io/pluginsdk/schema" +// EnabledOutputSchema returns the schema for the enabled stage that is +// implemented in several step types. func EnabledOutputSchema() *schema.StepOutputSchema { return schema.NewStepOutputSchema( schema.NewScopeSchema( @@ -29,6 +31,8 @@ func EnabledOutputSchema() *schema.StepOutputSchema { ) } +// DisabledOutputSchema returns the schema for the disabled stage that is +// implemented in several step types. func DisabledOutputSchema() *schema.StepOutputSchema { return schema.NewStepOutputSchema( schema.NewScopeSchema(