dify/api/controllers/console/workspace
Harry 9e990c5ccd feat(api): add validation to ensure at least one field is provided in TriggerSubscriptionUpdateRequest
- Introduced a model validator in TriggerSubscriptionUpdateRequest to enforce that at least one of the fields (name, credentials, parameters, properties) must be provided.
- Refactored the TriggerSubscriptionUpdateApi to use the validated request object and simplified the logic for updating subscriptions based on the credential type.
- Updated the credential type check in TriggerProviderService to use a set for better performance and clarity.
2025-12-29 19:49:24 +08:00
..
__init__.py use deco to avoid current_user (#26077) 2025-10-16 15:45:51 +09:00
account.py refactor: port reqparse to Pydantic model (#28949) 2025-12-05 13:05:53 +09:00
agent_providers.py api -> console_ns (#28246) 2025-11-24 10:04:11 +08:00
endpoint.py refactor: port reqparse to Pydantic model (#28913) 2025-11-30 16:09:42 +09:00
error.py fix: drop dead code phase2 unused class (#22042) 2025-07-17 09:33:07 +08:00
load_balancing_config.py refactor: split changes for api/controllers/console/workspace/load_ba… (#29887) 2025-12-26 11:00:03 +08:00
members.py refactor: port reqparse to Pydantic model (#28913) 2025-11-30 16:09:42 +09:00
model_providers.py refactor: port reqparse to Pydantic model (#28913) 2025-11-30 16:09:42 +09:00
models.py fix: fix available_credentials is empty (#29521) 2025-12-12 09:51:55 +08:00
plugin.py feat: add editing support for trigger subscriptions (#29957) 2025-12-24 19:15:54 +08:00
tool_providers.py fix(api): remove tool provider list cache to fix cache inconsistency (#30323) 2025-12-29 16:58:38 +08:00
trigger_providers.py feat(api): add validation to ensure at least one field is provided in TriggerSubscriptionUpdateRequest 2025-12-29 19:49:24 +08:00
workspace.py refactor: port reqparse to Pydantic model (#28913) 2025-11-30 16:09:42 +09:00