Releases: intelligentplant/ProblemDetails.WebApi
Releases · intelligentplant/ProblemDetails.WebApi
4.0.0
Breaking Changes
- Most extension methods in
ApiControllerExtentions
have been modified to accept an optionalextensions
parameter where extension properties for the generated problem details object can be specified.
What's Changed
- v4.0 by @wazzamatazz in #9
Full Changelog: v3.1.0...v4.0.0
3.1.0
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 theProblemDetailsActionFilterAttribute.OnActionExecuting
method ran.
3.0.0
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 updatedIntelligentPlant.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
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
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
2.0.0
- Downgrade target framework from
net462
tonet45
to match the minimum requirements of Web API. - Allow creation of
ValidationProblemDetails
fromValidationException
andValidationResult
instances. - Add extension methods for
ApiController
to allow controllers to directly create and return problem details results.
1.0.1
- Adds the
PathBase
of the HTTP request to the default path generated for theinstance
property on the problem details object.
1.0.0
Initial release