Skip to content

Getting TypeError from AutoSchema.get_operation() #9490

Discussion options

You must be logged in to vote

This typically happens when the generating the open API schema using DRF methods on endpoints where DRF-spectacular AutoSchema is set. The stack trace points at this line:

https://github.com/apitally/apitally-py/blob/4fe5298e7cd7892f5368e29acb1a86e0593dcacd/apitally/django.py#L260

They use DRF SchemaGenerator, but spectacular has its own one https://github.com/tfranzel/drf-spectacular/blob/cc916372a0e3fafc3af48f94dd1a985f5fc466e9/drf_spectacular/generators.py#L102

IMO this is more an issue for APItally than DRF, they could detect whether spectacular is installed and use the appropriate generator if needed.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tomchristie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #9481 on August 06, 2024 10:51.