-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJsonApiErrorLinksObject.cs
More file actions
31 lines (27 loc) · 1.01 KB
/
JsonApiErrorLinksObject.cs
File metadata and controls
31 lines (27 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
using Crews.Web.JsonApiClient.Converters;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace Crews.Web.JsonApiClient;
/// <summary>
/// Represents a set of links that provide additional information about an error in a JSON:API document.
/// </summary>
public record JsonApiErrorLinksObject
{
/// <summary>
/// Gets or sets a link that provides additional information about the error.
/// </summary>
[JsonPropertyName("about")]
[JsonConverter(typeof(JsonApiLinkConverter))]
public JsonApiLink? About { get; init; }
/// <summary>
/// Gets or sets the link that specifies the type of the error.
/// </summary>
[JsonPropertyName("type")]
[JsonConverter(typeof(JsonApiLinkConverter))]
public JsonApiLink? Type { get; init; }
/// <summary>
/// Gets or sets a collection of additional JSON properties that are not mapped to known members.
/// </summary>
[JsonExtensionData]
public Dictionary<string, JsonElement>? Extensions { get; init; }
}