File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1358,7 +1358,7 @@ impl ComponentSchema {
13581358 // TODO: refs support `summary` field but currently there is no such field
13591359 // on schemas more over there is no way to distinct the `summary` from
13601360 // `description` of the ref. Should we consider supporting the summary?
1361- let schema = if default . is_some ( ) || nullable || title . is_some ( ) {
1361+ let schema = if nullable {
13621362 composed_or_ref ( quote_spanned ! { type_path. span( ) =>
13631363 utoipa:: openapi:: schema:: OneOfBuilder :: new( )
13641364 #nullable_item
@@ -1374,6 +1374,7 @@ impl ComponentSchema {
13741374 utoipa:: openapi:: schema:: RefBuilder :: new( )
13751375 #description_stream
13761376 . ref_location_from_schema_name( #name_tokens)
1377+ #default_tokens
13771378 } )
13781379 } ;
13791380
You can’t perform that action at this time.
0 commit comments