Deceivious
07/19/2023, 12:52 PMdef flow(a:int,b:str)
How do i disable validation for b
while keeping the validation for a
active?Jake Kaplan
07/19/2023, 1:09 PMb
to be whatever you'd like or remove it entirelyfrom prefect import flow
from typing import Any
@flow
def flow(a: int, b: Any):
print(a, b)
if __name__ == '__main__':
flow(1, 'b')
flow(1, 5)
Deceivious
07/19/2023, 1:40 PMJake Kaplan
07/19/2023, 1:44 PM@flow
def flow(a: int, b: DontCoerce[str]):
...
Deceivious
07/19/2023, 1:55 PMb
to be a Enum type of which the values are computed are baked into the deployment using the open api params. But when i run the flow, the b
param was being checked and failing.b
to str while only modifying the deplyment open api params without any issues.