• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

loresoft / FluentRest / 8851497268

26 Apr 2024 04:40PM UTC coverage: 57.33% (+5.1%) from 52.206%
8851497268

push

github

pwelter34
Update Issue.cs

270 of 604 branches covered (44.7%)

Branch coverage included in aggregate %.

825 of 1306 relevant lines covered (63.17%)

69.17 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/FluentRest/ProblemDetails.cs
1
using System;
2
using System.Collections.Generic;
3
using System.Text.Json;
4
using System.Text.Json.Serialization;
5

6
namespace FluentRest;
7

8
/// <summary>
9
/// A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807.
10
/// </summary>
11
[JsonConverter(typeof(ProblemDetailsConverter))]
12
public class ProblemDetails
13
{
14
    /// <summary>
15
    /// The content-type for a problem json response
16
    /// </summary>
17
    public const string ContentType = "application/problem+json";
18

19
    /// <summary>
20
    /// A URI reference that identifies the problem type.
21
    /// </summary>
22
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
23
    [JsonPropertyName("type")]
24
    public string Type { get; set; }
×
25

26
    /// <summary>
27
    /// A short, human-readable summary of the problem type.
28
    /// </summary>
29
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
30
    [JsonPropertyName("title")]
31
    public string Title { get; set; }
×
32

33
    /// <summary>
34
    /// The HTTP status code generated by the origin server for this occurrence of the problem.
35
    /// </summary>
36
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
37
    [JsonPropertyName("status")]
38
    public int? Status { get; set; }
×
39

40
    /// <summary>
41
    /// A human-readable explanation specific to this occurrence of the problem.
42
    /// </summary>
43
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
44
    [JsonPropertyName("detail")]
45
    public string Detail { get; set; }
×
46

47
    /// <summary>
48
    /// A URI reference that identifies the specific occurrence of the problem.
49
    /// </summary>
50
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
51
    [JsonPropertyName("instance")]
52
    public string Instance { get; set; }
×
53

54
    /// <summary>
55
    /// Problem type definitions MAY extend the problem details object with additional members.
56
    /// </summary>
57
    [JsonExtensionData]
58
    public IDictionary<string, object> Extensions { get; } = new Dictionary<string, object>(StringComparer.Ordinal);
×
59
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc