Skip to content

Commit e29821b

Browse files
committed
small change
1 parent 88891be commit e29821b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

services/api-server/src/simcore_service_api_server/_service_function_jobs.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,13 +102,11 @@ async def validate_function_inputs(
102102

103103
if function.input_schema.schema_class == FunctionSchemaClass.json_schema:
104104
try:
105-
all(
105+
for input in job_inputs:
106106
jsonschema.validate(
107107
instance=input.values,
108108
schema=function.input_schema.schema_content,
109109
)
110-
for input in job_inputs
111-
)
112110
except ValidationError as err:
113111
return False, str(err)
114112
return True, "Inputs are valid"
@@ -147,6 +145,7 @@ async def pre_register_function_job(
147145
if not is_valid:
148146
raise FunctionInputsValidationError(error=validation_str)
149147

148+
function_jobs: list[ProjectFunctionJob | SolverFunctionJob]
150149
if function.function_class == FunctionClass.PROJECT:
151150
function_jobs = [
152151
ProjectFunctionJob(

0 commit comments

Comments
 (0)