Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Oct 20, 2023
1 parent c3189e5 commit e31e2af
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/django_oapif/pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,11 @@ def get_paginated_response(self, data):

def get_schema_operation_parameters(self, view):
params = super().get_schema_operation_parameters(view)
params[0]["style"] = "form"
params[1]["style"] = "form"
for i in (0, 1):
# style is the default
# see https://swagger.io/docs/specification/serialization/
if "style" not in params[i]:
params[i]["style"] = "form"
return params


Expand Down

0 comments on commit e31e2af

Please sign in to comment.