Skip to content

Commit 4205dff

Browse files
committed
parser / properties / LazyReferencePropertyProxy: enforce nullable to false
- Having nullable to `true` lead to invalid source generation Since `LazyReferencePropertyProxy` is only made to be used for inner property reference, it seems unamrfull It's ~nullability shall be define on its parent
1 parent 1de3190 commit 4205dff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_python_client/parser/properties/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def __deepcopy__(self, memo: Any) -> Property:
7878

7979
def __getattr__(self, name: str) -> Any:
8080
if name == "nullable":
81-
return not self._required
81+
return False
8282
elif name == "required":
8383
return self._required
8484
else:

0 commit comments

Comments
 (0)