Hi. I'm not missing anything specific from this, b...
# prefect-community
s
Hi. I'm not missing anything specific from this, but wanted to make sure: Prefect 2 does not have an alternative for Prefect 1's
Flow(...).validate()
, right?
1
k
I’m not very familiar with Prefect 1's
Flow(...).validate()
. Does it validate the types of a flow’s parameters?
s
Hi. No.
validate()
checks if a flow is valid by essentially checking if all tasks are added correctly. I think it's more DAG-focused, which Prefect 2 is not. So that's my guess for why there isn't a similar native feature?
k
Yeah I think so. In the future, we might add DAG to 2.0 so this could be the future feature
👍 1
z
I don’t really know what this would mean in v2 since it’s not possible for a flow to contain tasks from outside the flow.