Skip to content

Commit c459700

Browse files
committed
fix(error): ignore StatusCode property
1 parent 2feec1d commit c459700

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/JsonApiDotNetCore/Internal/Error.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ public Error(string status, string title, string detail)
2929
[JsonProperty("status")]
3030
public string Status { get; set; }
3131

32+
[JsonIgnore]
3233
public int StatusCode { get { return int.Parse(Status); } }
3334
}
3435
}

0 commit comments

Comments
 (0)