Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #53209 [HttpKernel] Add support for custom HTTP status code f…
…or the `#[MapQueryParameter]` attribute (ovidiuenache) This PR was merged into the 7.1 branch. Discussion ---------- [HttpKernel] Add support for custom HTTP status code for the `#[MapQueryParameter]` attribute | Q | A | ------------- | --- | Branch? | 7.1 | Bug fix? | no | New feature? | yes | Deprecations? | no | Issues | #52782 | License | MIT Issue #52782 was created where the need to have a custom HTTP status code for the MapQueryParameter attribute was stated. As part of the discussion, `@nicolas`-grekas suggested an approach similar to the implementation of the MapQueryString attribute where such a status code can be provided in the attribute's constructor. I believe having the possibility to control the status code returned for an invalid and non-nullable parameter with no default value would be a great addition so I took the liberty to create this PR. This change is backward compatible. Commits ------- c9f33bb [HttpKernel] Add support for custom HTTP status code for the MapQueryParameter attribute
- Loading branch information
Showing
4 changed files
with
149 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.