-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ProblemDetails.cs description (#41)
Co-authored-by: Artem Levin <[email protected]>
- Loading branch information
Showing
1 changed file
with
21 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,33 @@ | ||
namespace Arbus.Network; | ||
|
||
// | ||
// Summary: | ||
// A machine-readable format for specifying errors in HTTP API responses based on | ||
// https://tools.ietf.org/html/rfc7807. | ||
/// <summary> | ||
/// A machine-readable format for specifying errors in HTTP API responses based on <a href="https://tools.ietf.org/html/rfc7807">specification</a>. | ||
/// </summary> | ||
public record ProblemDetails | ||
{ | ||
// | ||
// Summary: | ||
// A URI reference [RFC3986] that identifies the problem type. This specification | ||
// encourages that, when dereferenced, it provide human-readable documentation for | ||
// the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member | ||
// is not present, its value is assumed to be "about:blank". | ||
/// <summary> | ||
/// A URI reference [RFC3986] that identifies the problem type. This specification | ||
/// encourages that, when dereferenced, it provide human-readable documentation for | ||
/// the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member | ||
/// is not present, its value is assumed to be "about:blank". | ||
/// </summary> | ||
public string? Type { get; set; } | ||
|
||
// | ||
// Summary: | ||
// A short, human-readable summary of the problem type.It SHOULD NOT change from | ||
// occurrence to occurrence of the problem, except for purposes of localization(e.g., | ||
// using proactive content negotiation; see[RFC7231], Section 3.4). | ||
/// <summary> | ||
/// A short, human-readable summary of the problem type.It SHOULD NOT change from | ||
/// occurrence to occurrence of the problem, except for purposes of localization(e.g., | ||
/// using proactive content negotiation; see[RFC7231], Section 3.4). | ||
/// </summary> | ||
public string? Title { get; set; } | ||
|
||
// | ||
// Summary: | ||
// The HTTP status code([RFC7231], Section 6) generated by the origin server for | ||
// this occurrence of the problem. | ||
//public int Status { get; init; } | ||
|
||
// | ||
// Summary: | ||
// A human-readable explanation specific to this occurrence of the problem. | ||
/// <summary> | ||
/// A human-readable explanation specific to this occurrence of the problem. | ||
/// </summary> | ||
public string? Detail { get; set; } | ||
|
||
// | ||
// Summary: | ||
// A URI reference that identifies the specific occurrence of the problem.It may | ||
// or may not yield further information if dereferenced. | ||
/// <summary> | ||
/// A URI reference that identifies the specific occurrence of the problem.It may | ||
/// or may not yield further information if dereferenced. | ||
/// </summary> | ||
public string? Instance { get; set; } | ||
|
||
// | ||
// Summary: | ||
// Gets the System.Collections.Generic.IDictionary`2 for extension members. | ||
// Problem type definitions MAY extend the problem details object with additional | ||
// members. Extension members appear in the same namespace as other members of a | ||
// problem type. | ||
// | ||
// Remarks: | ||
// The round-tripping behavior for Microsoft.AspNetCore.Mvc.ProblemDetails.Extensions | ||
// is determined by the implementation of the Input \ Output formatters. In particular, | ||
// complex types or collection types may not round-trip to the original type when | ||
// using the built-in JSON or XML formatters. | ||
|
||
//public IDictionary<string, object?> Extensions { get; init; } | ||
} |