Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v4.0 #9

Merged
merged 6 commits into from
Mar 19, 2024
Merged

v4.0 #9

merged 6 commits into from
Mar 19, 2024

Conversation

wazzamatazz
Copy link
Contributor

This PR updates to libraries to version 4.0. Version 4.0 contains the following changes:

  • [Breaking] Minimum .NET Framework version is now net462.
  • [Breaking] Existing extension methods in ApiControllerExtensions have been modified to accept an optional extensions parameter to allow extension properties to be easily added when creating responses for Web API controller requests.
  • ApiControllerExtensions has new extension methods to create responses directly from ProblemDetails instances.
  • Property name annotations have been added to ProblemDetails, ValidationProblemDetails and ServerErrorProblemDetails for System.Text.Json in addition to the existign annotations for Newtonsoft.Json.

Adds extensions that allow an `HttpResponseMessage` or an `IHttpActionResult` to be created directly from a `ProblemDetails` object.

Also modifies `HttpResponseMessage` creation to use `HttpConfiguration.Formatters.JsonFormatter` if available instead of always creating a new `JsonMediaTypeFormatter` instance.
@wazzamatazz wazzamatazz merged commit acad611 into main Mar 19, 2024
@wazzamatazz wazzamatazz deleted the develop/4.0 branch March 19, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant