-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
generalize handling of list query parameters in newsfragment
- Loading branch information
Showing
1 changed file
with
17 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,18 @@ | ||
Change in update model endpoints (PATCH) ``update_mask`` | ||
Change in query parameter handling for list parameters | ||
|
||
The ``update_mask`` parameter in the PATCH endpoints has been updated to explode (true) by default. | ||
Before: ``http://<URL>:<PORT>/<PATH>?update_mask=item1,item2`` | ||
After: ``http://<URL>:<PORT>/<PATH>?update_mask=item1&update_mask=item2`` | ||
The handling of list-type query parameters in the API has been updated. | ||
FastAPI defaults the ``explode`` behavior to ``true`` for list parameters, | ||
which affects how these parameters are passed in requests. | ||
This adjustment applies to all list-type query parameters across the API. | ||
|
||
Before: | ||
|
||
.. code-block:: | ||
http://<URL>:<PORT>/<PATH>?param=item1,item2 | ||
After: | ||
|
||
.. code-block:: | ||
http://<URL>:<PORT>/<PATH>?param=item1¶m=item2 |