Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object has no attribute 'is_array' #410

Open
STOCKZE opened this issue May 1, 2024 · 0 comments
Open

object has no attribute 'is_array' #410

STOCKZE opened this issue May 1, 2024 · 0 comments

Comments

@STOCKZE
Copy link

STOCKZE commented May 1, 2024

│ │
\lib\site-packages\datamodel_code_generator\parser\openapi.py:289 in parse_schema │
│ │
│ 286 │ │ obj: JsonSchemaObject, │
│ 287 │ │ path: List[str], │
│ 288 │ ) -> DataType: │
│ ❱ 289 │ │ if obj.is_array: │
│ 290 │ │ │ data_type: DataType = self.parse_array_fields( │
│ 291 │ │ │ │ name, obj, [*path, name], False │
│ 292 │ │ │ ).data_type │
│ │

│ │ self = <fastapi_code_generator.parser.OpenAPIParser object at 0x000001FD7DA71810> │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'NoneType' object has no attribute 'is_array'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant