Skip to content

Commit

Permalink
fix: validation of enums
Browse files Browse the repository at this point in the history
  • Loading branch information
jfaldanam committed Nov 7, 2023
1 parent 710dd8d commit 730edbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/eidos/validation/type.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def check_ai_parameter_types(values: dict) -> dict:
raise ValueError("Options must be a list of unique values")

for option in values["options"]:
if not (main_type == type(option)):
if not (main_type == get_type_as_string(option)):
raise ValueError(
f"Options must be a list of {values['type']}, "
f"but {option} is {type(option)}"
Expand Down

0 comments on commit 730edbc

Please sign in to comment.