You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/user/work/issue-datamodel-code-generator/.venv/lib/python3.11/site-packages/datamodel_code_generator/__main__.py", line 445, in main
generate(
File "/Users/user/work/issue-datamodel-code-generator/.venv/lib/python3.11/site-packages/datamodel_code_generator/__init__.py", line 473, in generate
results = parser.parse()
^^^^^^^^^^^^^^
File "/Users/user/work/issue-datamodel-code-generator/.venv/lib/python3.11/site-packages/datamodel_code_generator/parser/base.py", line 1366, in parse
self.__collapse_root_models(
File "/Users/user/work/issue-datamodel-code-generator/.venv/lib/python3.11/site-packages/datamodel_code_generator/parser/base.py", line 1015, in __collapse_root_models
elif data_type.parent.is_list:
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'is_list'
The text was updated successfully, but these errors were encountered:
Describe the bug
Fail to generate python code with an
array
of$ref
from anallof
, anAttributeError
has been raised by the lib.If this is not a bug, please let me know if I'm doing something wrong.
To Reproduce
Example schema:
Used commandline:
Actual behavior
Expected behavior
Version:
Additional context
The traceback
The text was updated successfully, but these errors were encountered: