|
1 | 1 | using Newtonsoft.Json;
|
| 2 | +using Newtonsoft.Json.Linq; |
2 | 3 |
|
3 |
| -namespace WalletFramework.SdJwtVc.Models.Credential.Attributes |
4 |
| -{ |
| 4 | +namespace WalletFramework.SdJwtVc.Models.Credential.Attributes; |
| 5 | + |
| 6 | +/// <summary> |
| 7 | +/// Represents the specifics about a claim. |
| 8 | +/// </summary> |
| 9 | +public class ClaimMetadata { |
5 | 10 | /// <summary>
|
6 |
| - /// Represents the specifics about a claim. |
| 11 | + /// Gets or sets the list of display properties associated with a specific credential attribute. |
7 | 12 | /// </summary>
|
8 |
| - public class ClaimMetadata |
9 |
| - { |
10 |
| - /// <summary> |
11 |
| - /// Gets or sets the list of display properties associated with a specific credential attribute. |
12 |
| - /// </summary> |
13 |
| - /// <value> |
14 |
| - /// The list of display properties. Each display property provides information on how the credential attribute should |
15 |
| - /// be displayed. |
16 |
| - /// </value> |
17 |
| - [JsonProperty("display", NullValueHandling = NullValueHandling.Ignore)] |
18 |
| - public List<ClaimDisplay>? Display { get; set; } |
| 13 | + /// <value> |
| 14 | + /// The list of display properties. Each display property provides information on how the credential attribute should |
| 15 | + /// be displayed. |
| 16 | + /// </value> |
| 17 | + [JsonProperty("display", NullValueHandling = NullValueHandling.Ignore)] |
| 18 | + public List<ClaimDisplay>? Display { get; set; } |
19 | 19 |
|
20 |
| - /// <summary> |
21 |
| - /// String value determining type of value of the claim. A non-exhaustive list of valid values defined by this |
22 |
| - /// specification are string, number, and image media types such as image/jpeg. |
23 |
| - /// </summary> |
24 |
| - [JsonProperty("value_type", NullValueHandling = NullValueHandling.Ignore)] |
25 |
| - public string? ValueType { get; set; } |
26 |
| - |
27 |
| - /// <summary> |
28 |
| - /// String value determining type of value of the claim. A non-exhaustive list of valid values defined by this |
29 |
| - /// specification are string, number, and image media types such as image/jpeg. |
30 |
| - /// </summary> |
31 |
| - [JsonProperty("mandatory", NullValueHandling = NullValueHandling.Ignore)] |
32 |
| - public string? Mandatory { get; set; } |
33 |
| - } |
| 20 | + /// <summary> |
| 21 | + /// String value determining type of value of the claim. A non-exhaustive list of valid values defined by this |
| 22 | + /// specification are string, number, and image media types such as image/jpeg. |
| 23 | + /// </summary> |
| 24 | + [JsonProperty("value_type", NullValueHandling = NullValueHandling.Ignore)] |
| 25 | + public string? ValueType { get; set; } |
| 26 | + |
| 27 | + /// <summary> |
| 28 | + /// String value determining type of value of the claim. A non-exhaustive list of valid values defined by this |
| 29 | + /// specification are string, number, and image media types such as image/jpeg. |
| 30 | + /// </summary> |
| 31 | + [JsonProperty("mandatory", NullValueHandling = NullValueHandling.Ignore)] |
| 32 | + public string? Mandatory { get; set; } |
| 33 | + |
| 34 | + [JsonProperty("nested_claims", NullValueHandling = NullValueHandling.Ignore)] |
| 35 | + [JsonExtensionData] |
| 36 | + public Dictionary<string, JToken>? NestedClaims { get; set; } |
34 | 37 | }
|
| 38 | + |
0 commit comments