how do you specify a custom serializer for your models in Swagger UI 2.x?
Hi, I'm upgrading from Swagger 0.3.x to 2.x:
In 0.3.x, you could specify a custom model serializer via a docstring YAML comment, e.g.
def retrieve(self, request, *args, **kwargs):
Get domain details.
# YAML (for swagger documentation after the ---)
I'm not seeing how to do this in Swagger [UI] 2.x.
Solved! Go to Solution.
swagger-rest-swagger is not one of our projects, so we're unable to provide support for it. You best bet is to file a ticket with the project.
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓