Skip to content

Commit

Permalink
generalize handling of list query parameters in newsfragment
Browse files Browse the repository at this point in the history
  • Loading branch information
bugraoz93 committed Oct 25, 2024
1 parent 5d21261 commit 94bfe26
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions newsfragments/43102.significant.rst
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&param=item2

0 comments on commit 94bfe26

Please sign in to comment.