Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Apr 24, 2023

Bumps FastEndpoints.Swagger from 5.5.0 to 5.9.0.

Release notes

Sourced from FastEndpoints.Swagger's releases.

v5.9 Release

BREAKING CHANGES

  • integration testing extensions (GETAsync(), POSTAsync(), etc.) no longer throws InvalidOperationException

if your integration tests are doing try/catch blocks for doing assertions on the unhappy/error path, those tests would now fail. you'll have to get rid of the try/catch blocks and assert on the HttpResponseMessage's properties instead. here's an example.

NEW

  • ValidationContext<T> class for manipulating the validation failures list of the current endpoint #info
  • RFC8707 compatible problem detail (error response) builder #info
  • JsonExceptionTransformer func to enable customization of error messages when STJ throws due to invalid json input #info
  • ClearDefaultProduces(200,401,401) extension method to clear chosen produces metadata added by default #info
  • MarkNonNullablePropsAsRequired() swagger doc extension for TS client generation with OA3 swagger definitions #388
  • json array request body binding for inherited IEnumerable<T> request DTOs #436

IMPROVEMENTS

  • automatically add 400 - Bad Request, 401 - Unauthorized and 403 - Forbidden produces metadata to endpoints by default #info
  • add overload to AddError(), ThrowError(), ThrowIfAnyErrors() methods to accept a ValidationFailure #info
  • modify type discovery source generator for incremental generation #426
  • upgrade dependencies to latest

FIXES

  • default response serializer func overriding the content-type of 400 responses #info
  • swagger descriptions for properties decorated with [FromHeader("...")] not being picked up #info
  • swagger descriptions for inherited classes/schema not being picked up

v5.8.1 Release

IMPROVEMENTS

  • optional boolean argument urlEncoded for AllowFormData() method to accept application/x-www-form-urlencoded instead of multipart/form-data #info
  • ability to submit a request DTO as multipart form data when integration testing endpoints that accept form data. #409
  • ability to execute a non-concrete ICommand types #411
  • refactor & simplify httpclient extensions for testing

FIXES

  • EndpointWithMapping<TRequest, TResponse, TEntity> map methods becoming protected in v5.8 #info
  • double response issue if pre-processor sent response and validator also has failures. #info
  • endpoint factory being inferred from request body issue #info
  • incorrect swagger spec generation issue #info
  • minor oversight in accept metadata checking/caching per endpoint on first request #info

v5.8 Release

NEW

  • support for record types and required keyword by removing new() constraint on request DTOs
  • allow command handlers to manipulate endpoint validation state #info
  • ability to share state between pre/post processors and endpoint handler #info
  • add Policy() method to endpoint class for building authorization requirements per endpoint #info
  • ability to automatically add produces 400 metadata for endpoints with validators #info
  • ability to remove optional [FromHeaders],[FromClaim],[HasPermission] annotated properties from swagger request schema #387
  • support for IParsable<T> interface from .net 7.0 #385
  • support for ignoring GET request DTO properties annotated with [JsonIgnore] attribute for disabling binding #info

... (truncated)

Commits
  • 99663be v5.9 release
  • 2f4799d ClearDefaultAccepts() extension method
  • d7e082e json array request body binding for inherited IEnumerable\<T> request DTOs #436
  • 189ed42 MarkNonNullablePropsAsRequired() swagger extension
  • 539e51b add UseProblemDetails() method
  • 6399493 auto add produces metadata #432
  • e6c5a9f update xml docs of extensions
  • d230955 update xml docs of problemdetails class
  • 0dfb728 produces metadata improvements #422
  • 8024cb1 update changelog
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [FastEndpoints.Swagger](https://github.com/FastEndpoints/Library) from 5.5.0 to 5.9.0.
- [Release notes](https://github.com/FastEndpoints/Library/releases)
- [Commits](FastEndpoints/FastEndpoints@v5.5...v5.9)

---
updated-dependencies:
- dependency-name: FastEndpoints.Swagger
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant