最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

python - Tracing the cause of drf_spectacular.plumbing.UnableToProceedError - Stack Overflow

programmeradmin5浏览0评论

I have inherited a Django app in which DRF Spectacular was never fully installed. I want to get it working so I can easily see how the API has been set up.

There are quite a few models and serializers, and I suspect a custom field may be the cause of this error I am getting: drf_spectacular.plumbing.UnableToProceedError

There is a stack trace pointing to drf_spectacular/plumbing.py but all that tells me is that a field type hint was not able to be generated, not which field or modal or whatever caused it.

In the Spectacular settings, I have debugging set up:

SPECTACULAR_SETTINGS = {
    'DEBUG': True,
    ...

How else can I tell what actually went wrong?

I am trying to generate the schema inside a docker container with this command: docker compose run --rm site python manage.py spectacular --color --file schema.yml

发布评论

评论列表(0)

  1. 暂无评论