aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/verify.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/aflow/verify.go')
-rw-r--r--pkg/aflow/verify.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/aflow/verify.go b/pkg/aflow/verify.go
index d7ccbd124..5f7d16a09 100644
--- a/pkg/aflow/verify.go
+++ b/pkg/aflow/verify.go
@@ -91,6 +91,12 @@ func provideOutputs[T any](ctx *verifyContext, who string) {
}
}
+func provideArrayOutputs[T any](ctx *verifyContext, who string) {
+ for name, typ := range foreachFieldOf[T]() {
+ ctx.provideOutput(who, name, reflect.SliceOf(typ), true)
+ }
+}
+
func requireSchema[T any](ctx *verifyContext, who, what string) {
if _, err := schemaFor[T](); err != nil {
ctx.errorf(who, "%v: %v", what, err)