Skip to content

Commit d2c0f8a

Browse files
committed
Suppress new warnings (docfx fails otherwise)
1 parent 8080e73 commit d2c0f8a

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project>
22
<PropertyGroup>
33
<Nullable>enable</Nullable>
4-
<LangVersion>preview</LangVersion>
4+
<LangVersion>latest</LangVersion>
55
<ImplicitUsings>enable</ImplicitUsings>
66
<IsPackable>false</IsPackable>
77
<WarnOnPackingNonPackableProject>false</WarnOnPackingNonPackableProject>
@@ -18,7 +18,7 @@
1818
<PropertyGroup>
1919
<!-- .NET 10 Preview -->
2020
<SuppressNETCoreSdkPreviewMessage>true</SuppressNETCoreSdkPreviewMessage>
21-
<NoWarn>$(NoWarn);CA1873;NU1903;NU5104;NU1608</NoWarn>
21+
<NoWarn>$(NoWarn);CA1873;NU1903;NU5104;NU1608;IDE0340</NoWarn>
2222
</PropertyGroup>
2323

2424
<PropertyGroup>

src/JsonApiDotNetCore.OpenApi.Swashbuckle/JsonApiActionDescriptorCollectionProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ private static void SetConsumes(ActionDescriptor descriptor, Type requestType, J
315315
string contentType = mediaType.ToString();
316316

317317
if (descriptor is ControllerActionDescriptor controllerActionDescriptor &&
318-
controllerActionDescriptor.MethodInfo.GetCustomAttributes(typeof(ConsumesAttribute)).Any())
318+
controllerActionDescriptor.MethodInfo.GetCustomAttributes<ConsumesAttribute>().Any())
319319
{
320320
// A custom JSON:API action method with [Consumes] on it. Hide the attribute from Swashbuckle, so it uses our data in API Explorer.
321321
controllerActionDescriptor.MethodInfo = new MethodInfoWrapper(controllerActionDescriptor.MethodInfo, [typeof(ConsumesAttribute)]);

src/JsonApiDotNetCore/Configuration/IJsonApiOptions.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
using JsonApiDotNetCore.Resources.Annotations;
77
using JsonApiDotNetCore.Serialization.Objects;
88

9+
// ReSharper disable InvalidXmlDocComment
10+
// Justification: Temporary workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-501671.
11+
912
namespace JsonApiDotNetCore.Configuration;
1013

1114
/// <summary>

src/JsonApiDotNetCore/Resources/IResourceDefinition.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
using JsonApiDotNetCore.Queries.Expressions;
55
using JsonApiDotNetCore.Resources.Annotations;
66

7+
// ReSharper disable InvalidXmlDocComment
8+
// Justification: Temporary workaround for Resharper bug at https://youtrack.jetbrains.com/issue/RSRP-501671.
9+
710
namespace JsonApiDotNetCore.Resources;
811

912
/// <summary>

0 commit comments

Comments
 (0)