-
Notifications
You must be signed in to change notification settings - Fork 304
Description
Is your feature request related to a problem? Please describe.
When I want to run a workflow from the UI, I need to remember or look up what input it takes.
I'm using the python-sdk where the input is strictly typed with a pydantic model, so the schema is known.
Specifically it's in this view:
Describe the solution you'd like
There's a lot of ways to handle it, either it could
- be populated with examples values (json-schema also allows examples, maybe it could just use that if set)
- have the auto complete know about available fields and their types
- Be a fully typed form with something like https://jsonforms.io/
- Maybe (optionally) validate it before submitting?
Conforming to the full json-schema spec can sometimes be a hassle, but I think it would be very valuable even if it only supported simple fields and maybe not complex unions and the like until later.
Describe alternatives you've considered
Remembering all inputs and their types.
Create a template and store somewhere locally and paste that in.
Keep having a lot of workflows that fail to start because I forgot the input.
Additional context
Pydantic models has a built-in method to create a json-schema for a model, which could be used directly.
This is mostly a problem when I'm testing or developing on a new flow, because in prod I will not manually run the workflows.