Skip to content

Commit 41524d4

Browse files
committed
Use newer GetCustomAttributes method
1 parent aa2c382 commit 41524d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/JsonApiDotNetCore.OpenApi/JsonApiMetadata/EndpointResolver.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ internal sealed class EndpointResolver
1616
return null;
1717
}
1818

19-
HttpMethodAttribute? method = controllerAction.GetCustomAttributes(true).OfType<HttpMethodAttribute>().FirstOrDefault();
19+
HttpMethodAttribute? method = Attribute.GetCustomAttributes(controllerAction, true).OfType<HttpMethodAttribute>().FirstOrDefault();
2020

2121
return ResolveJsonApiEndpoint(method);
2222
}

0 commit comments

Comments
 (0)