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 9e123f3 commit 5e1f110Copy full SHA for 5e1f110
1 file changed
openhexa/sdk/pipelines/parameter/choices.py
@@ -40,12 +40,14 @@ def _detect_format(path: str) -> str:
40
return "yaml" if ext == "yml" else ext
41
42
def validate_spec(self):
43
+ """Validate the path and column specification."""
44
if not self.path or not isinstance(self.path, str):
45
raise InvalidParameterError("ChoicesFromFile path must be a non-empty string.")
46
if self.column is not None and not isinstance(self.column, str):
47
raise InvalidParameterError("ChoicesFromFile column must be a string.")
48
49
def to_dict(self) -> dict:
50
+ """Return a dictionary representation of the choices spec."""
51
return {
52
"format": self.format,
53
"path": self.path,
0 commit comments