Skip to content

Commit 1028a4e

Browse files
vjaganat90Vasu Jaganath
andauthored
fix gen_schema due to arr handling (PolusAI#307)
Co-authored-by: Vasu Jaganath <[email protected]>
1 parent 8f18c97 commit 1028a4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sophios/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def populate_scalar_val(in_dict: dict) -> Any:
896896
val_list.append(populate_scalar_val(
897897
{'type': in_dict['type']['items'], 'value': val, 'format': in_dict.get('format')}))
898898
new_keyval = {key: val_list}
899-
elif isinstance(in_dict['type'], list) and 'array' == in_dict['type'][1]['type']:
899+
elif isinstance(in_dict['type'], list) and isinstance(in_dict['type'][1], dict) and 'array' == in_dict['type'][1]['type']:
900900
val_list = []
901901
for val in in_dict['value']:
902902
val_list.append(populate_scalar_val(

0 commit comments

Comments
 (0)