-
Notifications
You must be signed in to change notification settings - Fork 260
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
Path to view on error or warning #866
Comments
For me, covering just these 3 cases is enough (I edited your source locally for testing) https://github.com/tfranzel/drf-spectacular/blob/master/drf_spectacular/openapi.py#L870 |
Hey @HansAarneLiblik, that is an interesting suggestion. Certainly useful for people migrating and having lots of warnings. The meat of the matter lies here:
drf-spectacular/drf_spectacular/generators.py Line 238 in 2aabb8b
I'm open to suggestions on how to make this work. |
I created a PR #868 Don't really know how I feel about the duplication of |
improve trace messages / warnings & add color #866
Not a bug, but rather a feature-request
When generating the schema and there are errors for some views, it is difficult to track down the view as there may be views with same name in multiple apps
Error #0: task_list: unable to guess serializer. ...
It would be really great, if the path to the
view
was also printed out, e.g.url
fromself.path
or somehow the full filepathmyapp/views.py
The text was updated successfully, but these errors were encountered: