Skip to content

Commit 1ee8ee6

Browse files
committed
fix: restore variable type validation
1 parent 2c9901b commit 1ee8ee6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/parsing.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ func ParseConceptDefsAndDichotomousDefsAsSingleList(c *gin.Context) ([]interface
200200
conceptDefsAndDichotomousDefs = append(conceptDefsAndDichotomousDefs, dichotomousDef)
201201
default:
202202
log.Printf("Unsupported variable type: %s", variable.VariableType)
203-
// return nil, errors.New("unsupported variable type in request body") - TODO - first fix frontend to stop sending empty variables {}
203+
return nil, errors.New("unsupported variable type in request body")
204204
}
205205
}
206206

0 commit comments

Comments
 (0)