Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7k
Getting TypeError from AutoSchema.get_operation()#9490
-
Added APItally to a working DRF back-end. FWIW, it also uses
This is with:
Any suggestions appreciated. |
BetaWas this translation helpful?Give feedback.
All reactions
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:
They use DRF SchemaGenerator, but spectacular has its own onehttps://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: 3 comments
-
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: They use DRF SchemaGenerator, but spectacular has its own onehttps://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. |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1
-
its better to usehttps://drf-yasg.readthedocs.io/en/stable/readme.html |
BetaWas this translation helpful?Give feedback.
All reactions
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
I'm the founder of Apitally and just stumbled upon this. This has been fixed in the Apitally SDK now! ✅ |
BetaWas this translation helpful?Give feedback.
All reactions
This discussion was converted from issue #9481 on August 06, 2024 10:51.