Skip to content

Commit

Permalink
Update ProblemDetails.cs description (#41)
Browse files Browse the repository at this point in the history
Co-authored-by: Artem Levin <[email protected]>
  • Loading branch information
Leo506 and Artem Levin authored Jun 26, 2023
1 parent 0129c82 commit 3084bfe
Showing 1 changed file with 21 additions and 43 deletions.
64 changes: 21 additions & 43 deletions src/Arbus.Network/ProblemDetails.cs
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; }
}

0 comments on commit 3084bfe

Please sign in to comment.