Browse Source

dynamite: Fix descriptions of methods with summary and description

pull/222/head
jld3103 2 years ago
parent
commit
71a8ce6809
No known key found for this signature in database
GPG Key ID: 9062417B9E8EB7B3
  1. 2
      packages/dynamite/lib/src/openapi_builder.dart

2
packages/dynamite/lib/src/openapi_builder.dart

@ -579,7 +579,7 @@ class OpenAPIBuilder implements Builder {
..docs.addAll([ ..docs.addAll([
..._descriptionToDocs(operation.summary), ..._descriptionToDocs(operation.summary),
if (operation.summary != null && operation.description != null) ...[ if (operation.summary != null && operation.description != null) ...[
'', '///',
], ],
..._descriptionToDocs(operation.description), ..._descriptionToDocs(operation.description),
]); ]);

Loading…
Cancel
Save