Skip to content

Commit e6a8b4c

Browse files
committed
allow maximum of 50 function inputs
1 parent 15efb0b commit e6a8b4c

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/models-library/src/models_library/functions.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ class FunctionClass(str, Enum):
7575
# see here https://github.com/ITISFoundation/osparc-simcore/issues/7659
7676
FunctionInputs: TypeAlias = dict[str, Any] | None
7777

78-
FunctionInputsList: TypeAlias = list[FunctionInputs]
78+
FunctionInputsList: TypeAlias = Annotated[
79+
list[FunctionInputs],
80+
Field(max_length=50),
81+
]
7982

8083
FunctionOutputs: TypeAlias = dict[str, Any] | None
8184

services/api-server/openapi.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7699,6 +7699,7 @@
76997699
}
77007700
]
77017701
},
7702+
"maxItems": 50,
77027703
"title": "Function Inputs List"
77037704
}
77047705
}

0 commit comments

Comments
 (0)