Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

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

Open
wants to merge 2 commits into
base: stable/0.3.x
Choose a base branch
from

Conversation

tuffnatty
Copy link

@tuffnatty tuffnatty commented Aug 13, 2017

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.

@codetalks-new
Copy link

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

@tuffnatty
Copy link
Author

@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.

@codetalks-new
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants