Skip to content

Commit

Permalink
Fix WithOpenApi, v14.0.5, closes #4832
Browse files Browse the repository at this point in the history
  • Loading branch information
RicoSuter committed Mar 26, 2024
1 parent 4532c16 commit 72c059c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project>
<PropertyGroup>
<VersionPrefix>14.0.4</VersionPrefix>
<VersionPrefix>14.0.5</VersionPrefix>

<Authors>Rico Suter</Authors>
<Copyright>Copyright © Rico Suter, 2023</Copyright>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ private List<Type> GenerateApiGroups(
.Invoke(openApiOperationMetadata, [openApiJsonWriter]);

operation = JsonConvert.DeserializeObject<OpenApiOperation>(stringBuilder.ToString());
}
operation.Parameters.Clear(); // clear because parameters are added by the generator
}
#endif

operation.IsDeprecated = IsOperationDeprecated(item.Item1, apiDescription.ActionDescriptor, method);
Expand Down

0 comments on commit 72c059c

Please sign in to comment.