Refactor API error handling and validation logic

- Updated the `active` field validation in `WorkflowSummary` to use `field_validator` for improved clarity and functionality.
- Enhanced error messages in `get_workflow_detail`, `download_workflow`, and `get_workflow_diagram` endpoints to provide more specific feedback when workflows or files are not found.
- Added exception handling for JSON parsing errors in `get_workflow_diagram` to improve robustness.
- Updated the database file `workflows.db` to reflect recent changes.
This commit is contained in:
enrico
2025-06-21 15:33:40 +02:00
parent 449d7716ca
commit 964665bd13
3 changed files with 234 additions and 14 deletions

Binary file not shown.