Skip to content

Commit

Permalink
fix gen_schema due to arr handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasu Jaganath committed Dec 27, 2024
1 parent 8f18c97 commit 7f2c9a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sophios/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ def populate_scalar_val(in_dict: dict) -> Any:
val_list.append(populate_scalar_val(
{'type': in_dict['type']['items'], 'value': val, 'format': in_dict.get('format')}))
new_keyval = {key: val_list}
elif isinstance(in_dict['type'], list) and 'array' == in_dict['type'][1]['type']:
elif isinstance(in_dict['type'], list) and isinstance(in_dict['type'][1], dict) and 'array' == in_dict['type'][1]['type']:
val_list = []
for val in in_dict['value']:
val_list.append(populate_scalar_val(
Expand Down

0 comments on commit 7f2c9a5

Please sign in to comment.