We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1c962 commit 405b17cCopy full SHA for 405b17c
1 file changed
src/finecode/config/collect_actions.py
@@ -41,7 +41,9 @@ def _collect_action_handler_configs_in_config(
41
action_handlers_configs = config["tool"]["finecode"].get("action_handler", [])
42
action_handler_config_by_source: dict[str, dict[str, Any]] = {}
43
for handler_def in action_handlers_configs:
44
- # TODO: validate that source field exist?
+ if "source" not in handler_def or not isinstance(handler_def['source'], str):
45
+ raise config_models.ConfigurationError("Action handler definition expected to have a 'source' field(to identify handler) and it should be a string")
46
+
47
handler_config = handler_def.get("config", None)
48
if handler_config is not None:
49
action_handler_config_by_source[handler_def["source"]] = handler_config
0 commit comments