Skip to content

Commit

Permalink
Add more useful links
Browse files Browse the repository at this point in the history
  • Loading branch information
mofr committed Jul 25, 2024
1 parent 37be110 commit e851062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions winter_openapi/type_info_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ def convert_type_info_to_openapi_schema(value: TypeInfo, *, output: bool) -> Sch
if value.nullable:
if value.type_.value == 'object':
# https://stackoverflow.com/questions/40920441/how-to-specify-a-property-can-be-null-or-a-reference-with-swagger
# Better solution, but not implemented yet https://github.com/OpenAPITools/openapi-generator/issues/9083
schema = Schema(nullable=True, allOf=[schema])
else:
schema.nullable = True
Expand Down

0 comments on commit e851062

Please sign in to comment.