Skip to content
This repository was 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
tuffnatty wants to merge 2 commits intomarcgibbons:stable/0.3.xfrom
tuffnatty:refs_fix
Open

Stable/0.3.x: Fix $ref usage and remove unreferenced models from output#688
tuffnatty wants to merge 2 commits intomarcgibbons:stable/0.3.xfrom
tuffnatty:refs_fix

Conversation

@tuffnatty
Copy link
Copy Markdown

@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
Copy Markdown

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

@tuffnatty
Copy link
Copy Markdown
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
Copy Markdown

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

2 participants