Files
workflows-py/packages
Adrian Lyjak ebaf212bbe Add resource validation to workflow.validate() (#303)
* feat: Add resource and resource config validation to workflow validate()

Adds optional resource validation to validate():

- validate_resource_configs (default True): Validates config files exist
  and match their Pydantic schemas
- validate_resources (default False): Resolves resource factories, also
  catches circular dependencies via ResourceManager

Key implementation:
- _validate_resource_configs(): Stack-based traversal of all resources
  and their dependencies, validates _ResourceConfig instances
- _validate_resources(): Resolves resources via ResourceManager.get()
- validate() now runs even with disable_validation=True when called
  explicitly
- Python 3.9 compat: restore event loop after asyncio.run()

* Create smooth-donkeys-run.md

* Update test_resources.py

Kill off a silly extra test

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-23 19:49:22 -05:00
..