Hello everyone, I'm trying to use <dependency inje...
# ask-community
f
Hello everyone, I'm trying to use dependency injector in my prefect project but I'm struggling to inject dependencies into flows. Has anyone managed to make it work? It looks like prefect flow inputs validation is broken by DI
Copy code
ERROR   | prefect.flows - Parameter validation failed for flow 'aws-ce': [{'type': 'is_instance_of', 'loc': ('aws_secret_manager_client',), 'msg': 'Input should be an instance of AwsSecretManagerClient', 'input': <dependency_injector.wiring.Provide object at 0x16b3821d0>, 'ctx': {'class': 'AwsSecretManagerClient'}, 'url': '<https://errors.pydantic.dev/2.10/v/is_instance_of>'}