Skip to content

Commit

Permalink
Fix RequestBodyFilters not being deep copied
Browse files Browse the repository at this point in the history
Fix the property being copied twice instead of `RequestBodyFilters` being copied at all.
Missed from #2796.
Resolves #2273.
  • Loading branch information
martincostello committed May 6, 2024
1 parent d72fbe6 commit d6493dd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public void DeepCopy(SwaggerGeneratorOptions source, SwaggerGeneratorOptions tar
target.ParameterFilters = new List<IParameterFilter>(source.ParameterFilters);
target.OperationFilters = new List<IOperationFilter>(source.OperationFilters);
target.DocumentFilters = new List<IDocumentFilter>(source.DocumentFilters);
target.InferSecuritySchemes = source.InferSecuritySchemes;
target.RequestBodyFilters = new List<IRequestBodyFilter>(source.RequestBodyFilters);
target.SecuritySchemesSelector = source.SecuritySchemesSelector;
}

Expand Down

0 comments on commit d6493dd

Please sign in to comment.