Skip to content

Commit 7b1cc3a

Browse files
authored
Clarify comments and move to remarks section to keep the namespace list clean (#1818)
1 parent 08f849e commit 7b1cc3a

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

src/JsonApiDotNetCore/Middleware/IAsyncConvertEmptyActionResultFilter.cs

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ namespace JsonApiDotNetCore.Middleware;
55

66
/// <summary>
77
/// Converts action result without parameters into action result with null parameter.
8-
/// <example>
9-
/// <code><![CDATA[
10-
/// return NotFound() -> return NotFound(null)
11-
/// ]]></code>
12-
/// </example>
13-
/// This ensures our formatter is invoked, where we'll build a JSON:API compliant response. For details, see:
14-
/// https://github.com/dotnet/aspnetcore/issues/16969
158
/// </summary>
9+
/// <remarks>
10+
/// This basically turns calls such as
11+
/// <c>
12+
/// return NotFound()
13+
/// </c>
14+
/// into
15+
/// <c>
16+
/// return NotFound(null)
17+
/// </c>
18+
/// , so that our formatter is invoked, where we'll build a JSON:API compliant response. For details, see:
19+
/// https://github.com/dotnet/aspnetcore/issues/16969
20+
/// </remarks>
1621
[PublicAPI]
1722
public interface IAsyncConvertEmptyActionResultFilter : IAsyncAlwaysRunResultFilter;

0 commit comments

Comments
 (0)