Skip to content

Commit

Permalink
fix(array io): remove artifact types from array ItemTypes
Browse files Browse the repository at this point in the history
Array should only be from a parameter type
  • Loading branch information
mostaphaRoudsari committed Jan 2, 2021
1 parent 2cab602 commit f0d460b
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
9 changes: 5 additions & 4 deletions queenbee/io/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,16 @@


class ItemType(str, Enum):
"""Type enum for items in a list."""
"""Type enum for items in a list.
Items can not be files or folder. For a list of files you should copy them to a
folder and use FolderInput input instead of using ArrayInput.
"""
Generic = 'Generic' # generic type for inputs with no type hint.
String = 'String'
Integer = 'Integer'
Number = 'Number'
Boolean = 'Boolean'
File = 'File'
Folder = 'Folder'
Path = 'Path'
Array = 'Array' # set item type to a generic type
JSONObject = 'JSONObject'

Expand Down
2 changes: 1 addition & 1 deletion queenbee/io/inputs/alias.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def validate_spec(self, value):


class DAGArrayInputAlias(DAGGenericInputAlias):
"""An array input.
"""A JSON array input.
You can add additional validation by defining a JSONSchema specification.
Expand Down
2 changes: 1 addition & 1 deletion queenbee/io/inputs/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def validate_spec(self, value):


class DAGArrayInput(DAGGenericInput):
"""An array input.
"""A JSON array input.
You can add additional validation by defining a JSONSchema specification.
Expand Down
2 changes: 1 addition & 1 deletion queenbee/io/inputs/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def validate_spec(self, value):


class FunctionArrayInput(DAGArrayInput):
"""An array input.
"""A JSON array input.
You can add additional validation by defining a JSONSchema specification.
Expand Down
2 changes: 1 addition & 1 deletion queenbee/io/inputs/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class StepPathInput(FunctionPathInput):


class StepArrayInput(FunctionArrayInput):
"""An array input."""
"""A JSON array input."""

type: constr(regex='^StepArrayInput$') = 'StepArrayInput'

Expand Down
2 changes: 1 addition & 1 deletion queenbee/io/outputs/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class StepPathOutput(FunctionPathOutput):


class StepArrayOutput(FunctionArrayOutput):
"""An array output."""
"""A JSON array output."""

type: constr(regex='^StepArrayOutput$') = 'StepArrayOutput'

Expand Down

0 comments on commit f0d460b

Please sign in to comment.