File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/OpenApi/test/Microsoft.AspNetCore.OpenApi.Tests/Services Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -237,8 +237,11 @@ public ControllerActionDescriptor CreateActionDescriptor(string methodName = nul
237237 action . RouteValues . Add ( "controller" , "Test" ) ;
238238 action . RouteValues . Add ( "action" , action . MethodInfo . Name ) ;
239239 action . EndpointMetadata = [ ..action . MethodInfo . GetCustomAttributes ( ) ] ;
240- action . ActionConstraints = [ new HttpMethodActionConstraint (
241- action . EndpointMetadata . OfType < IActionHttpMethodProvider > ( ) . SelectMany ( a => a . HttpMethods ) . DefaultIfEmpty ( "GET" )
240+ action . ActionConstraints = [ new HttpMethodActionConstraint ( action
241+ . EndpointMetadata
242+ . OfType < IActionHttpMethodProvider > ( )
243+ . SelectMany ( a => a . HttpMethods )
244+ . DefaultIfEmpty ( "GET" )
242245 ) ] ;
243246 if ( controllerType is not null )
244247 {
You can’t perform that action at this time.
0 commit comments