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

loresoft / MediatR.CommandQuery / 11317449444

13 Oct 2024 08:24PM UTC coverage: 57.424% (-2.1%) from 59.523%
11317449444

push

github

pwelter34
add dispatcher feature

396 of 809 branches covered (48.95%)

Branch coverage included in aggregate %.

0 of 69 new or added lines in 6 files covered. (0.0%)

1151 of 1885 relevant lines covered (61.06%)

15.33 hits per line

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

0.0
/src/MediatR.CommandQuery/Models/ProblemDetails.cs
1
using System.Text.Json.Serialization;
2

3
namespace MediatR.CommandQuery.Models;
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
public class ProblemDetails
9
{
10
    /// <summary>
11
    /// The content-type for a problem json response
12
    /// </summary>
13
    public const string ContentType = "application/problem+json";
14

15
    /// <summary>
16
    /// A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when
17
    /// dereferenced, it provide human-readable documentation for the problem type
18
    /// (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be
19
    /// "about:blank".
20
    /// </summary>
21
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
22
    [JsonPropertyOrder(-5)]
23
    [JsonPropertyName("type")]
NEW
24
    public string? Type { get; set; }
×
25

26
    /// <summary>
27
    /// A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence
28
    /// of the problem, except for purposes of localization(e.g., using proactive content negotiation;
29
    /// see[RFC7231], Section 3.4).
30
    /// </summary>
31
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
32
    [JsonPropertyOrder(-4)]
33
    [JsonPropertyName("title")]
NEW
34
    public string? Title { get; set; }
×
35

36
    /// <summary>
37
    /// The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.
38
    /// </summary>
39
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
40
    [JsonPropertyOrder(-3)]
41
    [JsonPropertyName("status")]
NEW
42
    public int? Status { get; set; }
×
43

44
    /// <summary>
45
    /// A human-readable explanation specific to this occurrence of the problem.
46
    /// </summary>
47
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
48
    [JsonPropertyOrder(-2)]
49
    [JsonPropertyName("detail")]
NEW
50
    public string? Detail { get; set; }
×
51

52
    /// <summary>
53
    /// A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
54
    /// </summary>
55
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
56
    [JsonPropertyOrder(-1)]
57
    [JsonPropertyName("instance")]
NEW
58
    public string? Instance { get; set; }
×
59

60
    /// <summary>
61
    /// Gets the validation errors associated with this instance of problem details
62
    /// </summary>
63
    [JsonPropertyName("errors")]
NEW
64
    public IDictionary<string, string[]> Errors { get; set; } = new Dictionary<string, string[]>(StringComparer.Ordinal);
×
65

66
    /// <summary>
67
    /// Gets the <see cref="IDictionary{TKey, TValue}"/> for extension members.
68
    /// <para>
69
    /// Problem type definitions MAY extend the problem details object with additional members. Extension members appear in the same namespace as
70
    /// other members of a problem type.
71
    /// </para>
72
    /// </summary>
73
    /// <remarks>
74
    /// The round-tripping behavior for <see cref="Extensions"/> is determined by the implementation of the Input \ Output formatters.
75
    /// In particular, complex types or collection types may not round-trip to the original type when using the built-in JSON or XML formatters.
76
    /// </remarks>
77
    [JsonExtensionData]
NEW
78
    public IDictionary<string, object?> Extensions { get; set; } = new Dictionary<string, object?>(StringComparer.Ordinal);
×
79
}
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