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

loresoft / FluentRest / 7318593291

25 Dec 2023 02:55AM UTC coverage: 52.206%. Remained the same
7318593291

Pull #158

github

web-flow
Merge 38e3e6116 into 7b58509ff
Pull Request #158: Bump xunit.runner.visualstudio from 2.5.4 to 2.5.6

182 of 438 branches covered (0.0%)

Branch coverage included in aggregate %.

516 of 899 relevant lines covered (57.4%)

86.76 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.Serialization;
4

5
namespace FluentRest;
6

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

18
    /// <summary>
19
    /// A URI reference that identifies the problem type.
20
    /// </summary>
21
    [JsonPropertyName("type")]
22
    public string Type { get; set; }
23

24
    /// <summary>
25
    /// A short, human-readable summary of the problem type.
26
    /// </summary>
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
    [JsonPropertyName("status")]
34
    public int? Status { get; set; }
35

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

42
    /// <summary>
43
    /// A URI reference that identifies the specific occurrence of the problem.
44
    /// </summary>
45
    [JsonPropertyName("instance")]
46
    public string Instance { get; set; }
47

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