Reputation: 2073
I use django and swagger. I write doc string in my django function like this :
/?first_name__icontains=saeed&age__gte=20.
But swagger show them like this
how can I escape characters like & in django and swagger?
Edit:
My code in docstring of a django view
Upvotes: 0
Views: 969
Reputation: 97697
&
being rendered as &
in code blocks is a bug in Swagger UI 2.x which was fixed in UI 3.3.0:
https://github.com/swagger-api/swagger-ui/issues/2700
You need to update your Swagger UI version.
Upvotes: 1