Skip to content

Commit d4ad3a6

Browse files
committed
Address PR comments (2/2)
1 parent 456a78c commit d4ad3a6

File tree

14 files changed

+1950
-1861
lines changed

14 files changed

+1950
-1861
lines changed

src/Examples/JsonApiDotNetCoreExample/GeneratedSwagger/JsonApiDotNetCoreExample.json

Lines changed: 216 additions & 213 deletions
Large diffs are not rendered by default.

src/JsonApiDotNetCore.OpenApi/OpenApiEndpointConvention.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,8 +147,11 @@ private static IEnumerable<HttpStatusCode> GetSuccessStatusCodesForEndpoint(Json
147147
{
148148
return endpoint switch
149149
{
150-
JsonApiEndpoint.GetCollection or JsonApiEndpoint.GetSingle or JsonApiEndpoint.GetSecondary or JsonApiEndpoint.GetRelationship
151-
=> [HttpStatusCode.OK, HttpStatusCode.NotModified],
150+
JsonApiEndpoint.GetCollection or JsonApiEndpoint.GetSingle or JsonApiEndpoint.GetSecondary or JsonApiEndpoint.GetRelationship =>
151+
[
152+
HttpStatusCode.OK,
153+
HttpStatusCode.NotModified
154+
],
152155
JsonApiEndpoint.Post =>
153156
[
154157
HttpStatusCode.Created,

0 commit comments

Comments
 (0)