Skip to content

Commit f5efc91

Browse files
author
David Andersson
committed
undo using shared key in types
1 parent c0c5fa6 commit f5efc91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

open_alchemy/types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def to_dict(self) -> OpenApiJsonPropertyTypedDict:
420420
return_dict: OpenApiJsonPropertyTypedDict = {}
421421

422422
opt_keys: typing.List[Literal["nullable", "read_only", "write_only"]] = [
423-
OpenApiProperties.NULLABLE.value,
423+
"nullable",
424424
"read_only",
425425
"write_only",
426426
]
@@ -688,7 +688,7 @@ def to_dict(self) -> XToOneRelationshipPropertyTypedDict:
688688
"kwargs",
689689
"write_only",
690690
"description",
691-
OpenApiProperties.NULLABLE.value,
691+
"nullable",
692692
]
693693
for opt_key in opt_keys:
694694
value = getattr(self, opt_key)

0 commit comments

Comments
 (0)