<#5365 [Core feature] `pyflyte run` should support...
# flytekit
c
#5365 [Core feature] `pyflyte run` should support a simple json/yaml as input for all parameters Issue created by kumare3 ### Motivation: Why do you think this is important? Today
pyflyte 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
Copy code
@workflow
def foo(x : int, y: str, j: Optional[str]) -> ...
      ...
It should be possible to create a yaml like
Copy code
x: 1
y: hello
input.yaml
and then pass it using
Copy code
pyflyte run test.py wf --flyte-inputs input.[yaml | json]
Important to note
Copy code
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/flyte