cuddly-jelly-27016
05/31/2025, 12:10 AMpyflyte run supports passing json/yaml for dataclass/pydantic or json type arguments. But, often times folks just want to pass various parameters are one json/yaml.
This should be Optional It should continue to support existing parameters
### Goal: What should the final outcome look like, ideally?
For a workflow like
@workflow
def foo(x : int, y: str, j: Optional[str]) -> ...
...
It should be possible to create a yaml like
x: 1
y: hello
input.yaml
and then pass it using
pyflyte run test.py wf --flyte-inputs input.[yaml | json]
Important to note
pyflyte run test.py wf --help
should list all required and non-required parameters. Also required parameters should be checked before calling the remote.
### Describe alternatives you've considered
NA
### Propose: Link/Inline OR Additional context
No response
### Are you sure this issue hasn't been raised already?
• Yes
### Have you read the Code of Conduct?
• Yes
flyteorg/flytecuddly-jelly-27016
05/31/2025, 12:10 AM