Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Input type inference #79

Open
ghost opened this issue Apr 18, 2023 · 0 comments
Open

Input type inference #79

ghost opened this issue Apr 18, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@ghost
Copy link

ghost commented Apr 18, 2023

Please describe what you would like to see in this project

When the user does not provide a workflow input schema, the engine should automatically infer the type based on the expressions that use the input.

Please describe your use case

Writing workflows, and subworkflows (see #26 and #71) specifically require the user to write a great deal of boilerplate code. To make this effort easier, the user should not have to provide an input schema for the subworkflows. The main workflow can use this functionality too, but we should recommend still writing a schema for documentation purposes. Later on, the functionality can be extended to output the input schema as a starting point.

Additional context

The speculative input type inference requires that the expression language can do forward type inference, the reverse of the current Dendencies and Types function. An expression should be provided with an outcome type and it should be able to construct the type required to produce the desired input.

@ghost ghost added the enhancement New feature or request label Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

0 participants