MCPcopy Index your code
hub / github.com/github/spec-kit / validate

Method validate

src/specify_cli/workflows/steps/fan_in/__init__.py:53–61  ·  view source on GitHub ↗
(self, config: dict[str, Any])

Source from the content-addressed store, hash-verified

51 )
52
53 def validate(self, config: dict[str, Any]) -> list[str]:
54 errors = super().validate(config)
55 wait_for = config.get("wait_for", [])
56 if not isinstance(wait_for, list) or not wait_for:
57 errors.append(
58 f"Fan-in step {config.get('id', '?')!r}: "
59 f"'wait_for' must be a non-empty list of step IDs."
60 )
61 return errors

Calls 1

getMethod · 0.45