Skip to content

Releases: intelligentplant/ProblemDetails.WebApi

4.0.0

19 Mar 07:23
acad611
Compare
Choose a tag to compare

Breaking Changes

  • Most extension methods in ApiControllerExtentions have been modified to accept an optional extensions parameter where extension properties for the generated problem details object can be specified.

What's Changed

Full Changelog: v3.1.0...v4.0.0

3.1.0

01 Jul 11:50
Compare
Choose a tag to compare

Changes:

  • In ProblemDetailsActionFilterAttribute.OnActionExecuted, a validation problem details response will be returned if the response status code is 400 and the model state for the action context is not valid. This is to account for scenarios where the model state was invalidated (by another action filter or by a controller) after the ProblemDetailsActionFilterAttribute.OnActionExecuting method ran.

3.0.0

17 Dec 08:20
Compare
Choose a tag to compare

Breaking Changes:

  • This release moves the core ProblemDetails type into its own library/package (IntelligentPlant.ProblemDetails.Core). This is to allow for easier consumption of problem details responses by C# clients. The updated IntelligentPlant.ProblemDetails.WebApi package will automatically reference this dependency, so there is no need to add a new package reference to consuming projects when updating.

2.2.0

11 Dec 07:05
fc2c16e
Compare
Choose a tag to compare

Changes:

  • Fixes an issue where the status code of a Web API controller response did not match the status code of the generated problem details object (#5)
  • Adds support for transforming all problem details objects created by a ProblemDetailsFactory via a callback (#6)

Thanks to @agilenut for their contributions to this release!

2.1.1

10 Dec 18:30
caa52e2
Compare
Choose a tag to compare

Changes:

  • Adds support for providing a custom ProblemDetailsFactory to the OWIN middleware and Web API filters (#4).
  • DefaultProblemDetailsFactory is now public, so that it can be used as the basis for custom factory implementations if desired.
  • Fixes a bug where the HTTP response status code was not getting correctly set when catching an unhandled exception in the OWIN middleware.

2.1.0

10 Dec 08:55
207d29b
Compare
Choose a tag to compare

Changes:

  • Implements changes suggested in #1 (see #2 and #3 for implementation details).

2.0.0

25 Nov 10:50
Compare
Choose a tag to compare
  • Downgrade target framework from net462 to net45 to match the minimum requirements of Web API.
  • Allow creation of ValidationProblemDetails from ValidationException and ValidationResult instances.
  • Add extension methods for ApiController to allow controllers to directly create and return problem details results.

1.0.1

30 Sep 10:56
Compare
Choose a tag to compare
  • Adds the PathBase of the HTTP request to the default path generated for the instance property on the problem details object.

1.0.0

30 Sep 10:51
Compare
Choose a tag to compare

Initial release