Skip to content

Commit e46e525

Browse files
committed
- Hotfix for null items in array
1 parent 46b9822 commit e46e525

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "openapi-python-generator"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
description = "Openapi Python Generator"
55
authors = ["Marco Müllner <[email protected]>"]
66
license = "MIT"

src/openapi_python_generator/language_converters/python/model_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def type_converter(schema: Schema, required: bool = False) -> TypeConversion:
3333
pre_type = "Optional["
3434
post_type = "]"
3535

36-
original_type = schema.type
36+
original_type = schema.type if schema.type is not None else "object"
3737
import_types: Optional[List[str]] = None
3838

3939
if schema.allOf is not None:

0 commit comments

Comments
 (0)