-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AssertionError in plumbing.ResolvedComponent with 'COMPONENT_SPLIT_REQUEST': True #572
Comments
🤦 I think I have a pretty good idea what goes wrong there.
|
this applies both to nested and root level serializers. fixes an old existing bug and also a regression introduced in 0.20.0.
Just to cross-reference, this was a very similar traceback to the one I encountered for #542 - again this was |
@tfranzel Should I try out |
@ngnpope yes same loose end, but in a slightly different context. @johnthagen yes please test the master branch. this should do it once and for all. It fixes an old loose end plus the regression from 0.19.0 This issue here is that empty serializers are kind of awkward to model properly, which means the schema is not 100% correct. If there are no fields, we simplify and say there is no response, although in reality the response is always an empty list. not exactly the same. Those bugs were caused because I did not follow through that edge case for all variations. |
@tfranzel I can confirm that after doing I see a bunch of new Do you think #569 could also be included in the next release? |
excellent @johnthagen! i will have a look at #569 next. |
Describe the bug
We ported medium sized DRF application from
drf-yasg
todrf-spectacular
. Everything is working well and the schema generates, and it can be browsed using swagger-ui and redoc.But when we set
'COMPONENT_SPLIT_REQUEST': True
, the followingAssertionError
is thrown when loadingswagger-ui
orredoc
:To Reproduce
Python: 3.9.6
Django-related PyPI packages installed:
Settings:
I will try to narrow down the error to a small reproducible example if possible. Any tips on where to start looking would be appreciated.
Expected behavior
Swagger-UI and Redoc pages to load properly and display extra split models.
The text was updated successfully, but these errors were encountered: