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
At present this means that selecting multiple values in swagger-ui for a field defined as a MultipleChoiceField doesn't work as the ui generates csv queries, which don't work in drf.
I'm not exactly sure how to fix this correctly in drf-yasg as it is dependent on parameter type (formData and query only). I brute forced it for now which solved my problem, but it's not ideal. Suggestions?
The text was updated successfully, but these errors were encountered:
drf uses multiple parameter instances for passing multiple fields on query parameters (of the form ?param=one¶m=two); however the swagger spec defaults to csv for multiple parameters (https://swagger.io/docs/specification/2-0/describing-parameters/#array).
drf-yasg needs to insert 'collectionFormat=multi' onto the parameter schema to correctly describe the format. eg.
At present this means that selecting multiple values in swagger-ui for a field defined as a MultipleChoiceField doesn't work as the ui generates csv queries, which don't work in drf.
I'm not exactly sure how to fix this correctly in drf-yasg as it is dependent on parameter type (formData and query only). I brute forced it for now which solved my problem, but it's not ideal. Suggestions?
The text was updated successfully, but these errors were encountered: