You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix swagger API doc for `api/packages/bulk_search/`
- Use `extend_schema` to override the request body, which was not being properly discovered.
- drf-spectacular relies on `get_serializer_class()` and `get_serializer()`, and it works well for view functions that purely deal with ModelSerializer. For anything else, it gets a bit murky, and it is advised to provide proper overrides in the `extend_schema` decorator.
- Override erroneous pagination and filter backend caused due to response containing multiple serializer object https://drf-spectacular.readthedocs.io/en/latest/faq.html#my-action-is-erroneously-paginated-or-has-filter-parameters-that-i-do-not-want
Signed-off-by: Keshav Priyadarshi <[email protected]>
* Add tests for `bulk_search`
Signed-off-by: Keshav Priyadarshi <[email protected]>
* Test `bulk_search` with empty request body
Signed-off-by: Keshav Priyadarshi <[email protected]>
* Fix API doc generation for `api/packages/lookup`
Signed-off-by: Keshav Priyadarshi <[email protected]>
* Fix API doc generation for `api/packages/bulk_lookup`
Signed-off-by: Keshav Priyadarshi <[email protected]>
---------
Signed-off-by: Keshav Priyadarshi <[email protected]>
0 commit comments