infer

package
v0.17.0-beta1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package infer provides the ability to construct a schema inferred from existing data and possibly expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OutputSchema

func OutputSchema(
	data any,
	outputID string,
	outputSchema *schema.StepOutputSchema,
	internalDataModel *schema.ScopeSchema,
	functions map[string]schema.Function,
	workflowContext map[string][]byte,
) (*schema.StepOutputSchema, error)

OutputSchema either uses the passed output schema or infers the schema from the data model.

func Scope

func Scope(
	data any,
	internalDataModel *schema.ScopeSchema,
	functions map[string]schema.Function,
	workflowContext map[string][]byte,
) (schema.Scope, error)

Scope will infer a scope from the data.

func Type

func Type(
	data any,
	internalDataModel *schema.ScopeSchema,
	functions map[string]schema.Function,
	workflowContext map[string][]byte,
) (schema.Type, error)

Type attempts to infer the data model from the data, possibly evaluating expressions.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL