Skip to content
This repository was archived by the owner on Aug 30, 2025. It is now read-only.

Commit 32699b9

Browse files
committed
fix: Marked all implementations as Obsolete
BREAKING CHANGE: Deprecated package
1 parent 06900f5 commit 32699b9

7 files changed

+21
-7
lines changed

src/Response400ProblemDetailsAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using System;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using PowerUtils.AspNetCore.ErrorHandler;
45

@@ -7,6 +8,7 @@ namespace PowerUtils.AspNetCore.Attributes
78
/// <summary>
89
/// Problem details response with status code 400 (BadRequest)
910
/// </summary>
11+
[Obsolete("This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary.")]
1012
public class Response400ProblemDetailsAttribute : ProducesResponseTypeAttribute
1113
{
1214
public Response400ProblemDetailsAttribute() : base(typeof(ErrorProblemDetails), StatusCodes.Status400BadRequest) { }

src/Response401ProblemDetailsAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using System;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using PowerUtils.AspNetCore.ErrorHandler;
45

@@ -7,6 +8,7 @@ namespace PowerUtils.AspNetCore.Attributes
78
/// <summary>
89
/// Problem details response with status code 401 (Unauthorized)
910
/// </summary>
11+
[Obsolete("This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary.")]
1012
public class Response401ProblemDetailsAttribute : ProducesResponseTypeAttribute
1113
{
1214
public Response401ProblemDetailsAttribute() : base(typeof(ErrorProblemDetails), StatusCodes.Status401Unauthorized) { }

src/Response403ProblemDetailsAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using System;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using PowerUtils.AspNetCore.ErrorHandler;
45

@@ -7,6 +8,7 @@ namespace PowerUtils.AspNetCore.Attributes
78
/// <summary>
89
/// Problem details response with status code 403 (Forbidden)
910
/// </summary>
11+
[Obsolete("This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary.")]
1012
public class Response403ProblemDetailsAttribute : ProducesResponseTypeAttribute
1113
{
1214
public Response403ProblemDetailsAttribute() : base(typeof(ErrorProblemDetails), StatusCodes.Status403Forbidden) { }

src/Response404ProblemDetailsAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using System;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using PowerUtils.AspNetCore.ErrorHandler;
45

@@ -7,6 +8,7 @@ namespace PowerUtils.AspNetCore.Attributes
78
/// <summary>
89
/// Problem details response with status code 404 (NotFound)
910
/// </summary>
11+
[Obsolete("This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary.")]
1012
public class Response404ProblemDetailsAttribute : ProducesResponseTypeAttribute
1113
{
1214
public Response404ProblemDetailsAttribute() : base(typeof(ErrorProblemDetails), StatusCodes.Status404NotFound) { }

src/Response409ProblemDetailsAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using System;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using PowerUtils.AspNetCore.ErrorHandler;
45

@@ -7,6 +8,7 @@ namespace PowerUtils.AspNetCore.Attributes
78
/// <summary>
89
/// Problem details response with status code 409 (Conflict)
910
/// </summary>
11+
[Obsolete("This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary.")]
1012
public class Response409ProblemDetailsAttribute : ProducesResponseTypeAttribute
1113
{
1214
public Response409ProblemDetailsAttribute() : base(typeof(ErrorProblemDetails), StatusCodes.Status409Conflict) { }

src/Response413ProblemDetailsAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using System;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using PowerUtils.AspNetCore.ErrorHandler;
45

@@ -7,6 +8,7 @@ namespace PowerUtils.AspNetCore.Attributes
78
/// <summary>
89
/// Problem details response with status code 413 (PayloadTooLarge)
910
/// </summary>
11+
[Obsolete("This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary.")]
1012
public class Response413ProblemDetailsAttribute : ProducesResponseTypeAttribute
1113
{
1214
public Response413ProblemDetailsAttribute() : base(typeof(ErrorProblemDetails), StatusCodes.Status413PayloadTooLarge) { }

src/Response415ProblemDetailsAttribute.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using Microsoft.AspNetCore.Http;
1+
using System;
2+
using Microsoft.AspNetCore.Http;
23
using Microsoft.AspNetCore.Mvc;
34
using PowerUtils.AspNetCore.ErrorHandler;
45

@@ -7,6 +8,7 @@ namespace PowerUtils.AspNetCore.Attributes
78
/// <summary>
89
/// Problem details response with status code 415 (UnsupportedMediaType)
910
/// </summary>
11+
[Obsolete("This package has been discontinued because it never evolved, and the code present in this package does not justify its continuation. It is preferable to implement this code directly in the project if necessary.")]
1012
public class Response415ProblemDetailsAttribute : ProducesResponseTypeAttribute
1113
{
1214
public Response415ProblemDetailsAttribute() : base(typeof(ErrorProblemDetails), StatusCodes.Status415UnsupportedMediaType) { }

0 commit comments

Comments
 (0)