-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List Type in OpenApiTypes #341
Comments
you have to use a ListSerializer(), ListField(), or generally maybe you actually want to use if you really want to do this manually: |
Thankyou. How can I use that in |
my bad... |
closing this as it is not a bug or viable feature. |
I am using When using
|
This doesn't work for me either. # in extend_schema() decorator:
OpenApiParameter(
"myparam",
Serializer(
CharField(read_only=True, allow_null=False),
many=True,
),
location="query",
), causes:
ListSerializer(
child=CharField(read_only=True, allow_null=False),
), |
|
Only
dict
is supported currently asOpenApiTypes.OBJECT
, How to specifylist
type?I guess it had to be added here.
The text was updated successfully, but these errors were encountered: