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

loresoft / FluentRest / 9388947971

05 Jun 2024 05:56PM UTC coverage: 57.76% (+0.2%) from 57.587%
9388947971

push

github

pwelter34
fix flaky tests

277 of 614 branches covered (45.11%)

Branch coverage included in aggregate %.

847 of 1332 relevant lines covered (63.59%)

73.6 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.Text.Json.Serialization;
2

3
namespace FluentRest;
4

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

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

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

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

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

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

51
    /// <summary>
52
    /// Problem type definitions MAY extend the problem details object with additional members.
53
    /// </summary>
54
    [JsonExtensionData]
55
    public IDictionary<string, object> Extensions { get; } = new Dictionary<string, object>(StringComparer.Ordinal);
×
56
}
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

© 2026 Coveralls, Inc