django-rest-swagger icon indicating copy to clipboard operation
django-rest-swagger copied to clipboard

Stable/0.3.x: Fix $ref usage and remove unreferenced models from output

Open tuffnatty opened this issue 6 years ago • 3 comments

According to the spec, type cannot point to a custom type, which should be performed with $ref. Also, validation produced warnings about multiple unreferenced models (mostly Write...Serializer) which were previously generated. This patch removes them as well.

tuffnatty avatar Aug 13 '17 21:08 tuffnatty

Hi, I love this feature. I think this feature should be merged in.

codetalks-new avatar Oct 06 '18 13:10 codetalks-new

@banxi1988 Sadly, the stable/0.3.x branch is not being maintained. You can either use my fork, or try to backport this fix to to the master branch, or use drf-yasg which is better maintained.

tuffnatty avatar Oct 06 '18 15:10 tuffnatty

@tuffnatty Thank you very much. drf-yasg looks nice. I'll try it.

codetalks-new avatar Oct 08 '18 01:10 codetalks-new