File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed
packages/models-library/src/models_library Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 2525FileID : TypeAlias = UUID
2626
2727InputTypes : TypeAlias = FileID | float | int | bool | str | list
28- _MIN_LIST_LENGTH : Final [int ] = 1
2928_MAX_LIST_LENGTH : Final [int ] = 50
3029
3130
@@ -84,7 +83,7 @@ class FunctionClass(str, Enum):
8483
8584FunctionInputsList : TypeAlias = Annotated [
8685 list [FunctionInputs ],
87- Field (max_length = _MAX_LIST_LENGTH , min_length = _MIN_LIST_LENGTH ),
86+ Field (max_length = _MAX_LIST_LENGTH ),
8887]
8988
9089
@@ -244,7 +243,7 @@ class RegisteredPythonCodeFunctionJobPatch(BaseModel):
244243 Field (discriminator = "function_class" ),
245244]
246245FunctionJobList : TypeAlias = Annotated [
247- list [FunctionJob ], Field (max_length = _MAX_LIST_LENGTH , min_length = _MIN_LIST_LENGTH )
246+ list [FunctionJob ], Field (max_length = _MAX_LIST_LENGTH )
248247]
249248
250249
@@ -304,7 +303,6 @@ class FunctionJobPatchRequest(BaseModel):
304303 list [FunctionJobPatchRequest ],
305304 Field (
306305 max_length = _MAX_LIST_LENGTH ,
307- min_length = _MIN_LIST_LENGTH ,
308306 description = "List of function job patch requests" ,
309307 ),
310308]
Original file line number Diff line number Diff line change 82408240 }
82418241 ]
82428242 },
8243- "minItems" : 1 ,
82448243 "maxItems" : 50 ,
82458244 "title" : " Function Inputs List"
82468245 }
You can’t perform that action at this time.
0 commit comments