|
1 |
| -using System; |
| 1 | +using Microsoft.AspNetCore.Mvc; |
| 2 | +using System; |
2 | 3 | using System.Collections.Generic;
|
3 | 4 | using System.ComponentModel;
|
4 | 5 | using System.Text.Json.Serialization;
|
@@ -207,52 +208,52 @@ protected void LoadProblemDetails(ProblemDetails problemDetails)
|
207 | 208 | }
|
208 | 209 |
|
209 | 210 |
|
210 |
| - /// <summary> |
211 |
| - /// A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807. |
212 |
| - /// </summary> |
213 |
| - public class ProblemDetails |
214 |
| - { |
215 |
| - /// <summary> |
216 |
| - /// A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when |
217 |
| - /// dereferenced, it provide human-readable documentation for the problem type |
218 |
| - /// (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be |
219 |
| - /// "about:blank". |
220 |
| - /// </summary> |
221 |
| - public string Type { get; set; } |
| 211 | + ///// <summary> |
| 212 | + ///// A machine-readable format for specifying errors in HTTP API responses based on https://tools.ietf.org/html/rfc7807. |
| 213 | + ///// </summary> |
| 214 | + //public class ProblemDetails |
| 215 | + //{ |
| 216 | + // /// <summary> |
| 217 | + // /// A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when |
| 218 | + // /// dereferenced, it provide human-readable documentation for the problem type |
| 219 | + // /// (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be |
| 220 | + // /// "about:blank". |
| 221 | + // /// </summary> |
| 222 | + // public string Type { get; set; } |
222 | 223 |
|
223 |
| - /// <summary> |
224 |
| - /// A short, human-readable summary of the problem type.It SHOULD NOT change from occurrence to occurrence |
225 |
| - /// of the problem, except for purposes of localization(e.g., using proactive content negotiation; |
226 |
| - /// see[RFC7231], Section 3.4). |
227 |
| - /// </summary> |
228 |
| - public string Title { get; set; } |
| 224 | + // /// <summary> |
| 225 | + // /// A short, human-readable summary of the problem type.It SHOULD NOT change from occurrence to occurrence |
| 226 | + // /// of the problem, except for purposes of localization(e.g., using proactive content negotiation; |
| 227 | + // /// see[RFC7231], Section 3.4). |
| 228 | + // /// </summary> |
| 229 | + // public string Title { get; set; } |
229 | 230 |
|
230 |
| - /// <summary> |
231 |
| - /// The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. |
232 |
| - /// </summary> |
233 |
| - public int? Status { get; set; } |
| 231 | + // /// <summary> |
| 232 | + // /// The HTTP status code([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. |
| 233 | + // /// </summary> |
| 234 | + // public int? Status { get; set; } |
234 | 235 |
|
235 |
| - /// <summary> |
236 |
| - /// A human-readable explanation specific to this occurrence of the problem. |
237 |
| - /// </summary> |
238 |
| - public string Detail { get; set; } |
| 236 | + // /// <summary> |
| 237 | + // /// A human-readable explanation specific to this occurrence of the problem. |
| 238 | + // /// </summary> |
| 239 | + // public string Detail { get; set; } |
239 | 240 |
|
240 |
| - /// <summary> |
241 |
| - /// A URI reference that identifies the specific occurrence of the problem.It may or may not yield further information if dereferenced. |
242 |
| - /// </summary> |
243 |
| - public string Instance { get; set; } |
| 241 | + // /// <summary> |
| 242 | + // /// A URI reference that identifies the specific occurrence of the problem.It may or may not yield further information if dereferenced. |
| 243 | + // /// </summary> |
| 244 | + // public string Instance { get; set; } |
244 | 245 |
|
245 |
| - /// <summary> |
246 |
| - /// Gets the <see cref="IDictionary{TKey, TValue}"/> for extension members. |
247 |
| - /// <para> |
248 |
| - /// Problem type definitions MAY extend the problem details object with additional members. Extension members appear in the same namespace as |
249 |
| - /// other members of a problem type. |
250 |
| - /// </para> |
251 |
| - /// </summary> |
252 |
| - /// <remarks> |
253 |
| - /// The round-tripping behavior for <see cref="Extensions"/> is determined by the implementation of the Input \ Output formatters. |
254 |
| - /// In particular, complex types or collection types may not round-trip to the original type when using the built-in JSON or XML formatters. |
255 |
| - /// </remarks> |
256 |
| - public IDictionary<string, object> Extensions { get; } = new Dictionary<string, object>(StringComparer.Ordinal); |
257 |
| - } |
| 246 | + // /// <summary> |
| 247 | + // /// Gets the <see cref="IDictionary{TKey, TValue}"/> for extension members. |
| 248 | + // /// <para> |
| 249 | + // /// Problem type definitions MAY extend the problem details object with additional members. Extension members appear in the same namespace as |
| 250 | + // /// other members of a problem type. |
| 251 | + // /// </para> |
| 252 | + // /// </summary> |
| 253 | + // /// <remarks> |
| 254 | + // /// The round-tripping behavior for <see cref="Extensions"/> is determined by the implementation of the Input \ Output formatters. |
| 255 | + // /// In particular, complex types or collection types may not round-trip to the original type when using the built-in JSON or XML formatters. |
| 256 | + // /// </remarks> |
| 257 | + // public IDictionary<string, object> Extensions { get; } = new Dictionary<string, object>(StringComparer.Ordinal); |
| 258 | + //} |
258 | 259 | }
|
0 commit comments