-
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
proposing to render a filename for downloaded files #607
proposing to render a filename for downloaded files #607
Conversation
pipeline seems to fail for DRF 3.10 - trying to find the according documentation and then refactor the PR. |
Hi @bahag-raesenerm, thanks, I'm doing well. Hope you do too. Thank you for the PR. This is actually a thing i was unhappy with for quite some time. However, I'm undecided which is the best solution for this. Here are my thought from the top of my head
|
Hey again, so I've just used the format param condition since I could figure out fast enough how I'd else decide if it's a json or yaml file, also this renders it backwards compatible, right? about the incompatibility with drf 3.10 I've meanwhile got this via irc, just putting it here for later reference: <john_doe> let me check the diff, I'll tell you what to do |
pretty sure programmatic consumers will simply ignore the header. i believe it is pretty much ignored except by browsers.
i don't consider this a big issue. py3.6, django 2.2 and DRF 3.10 will go EOL very soon anyway. We could simply skip the offending test for this DRF version. i will test if we can combine |
thanks to @bahag-raesenerm for the proposition
thanks to @bahag-raesenerm for the proposition
thanks to @bahag-raesenerm for the proposition
thanks to @bahag-raesenerm for the proposition
ease schema browser handling with "Content-Disposition" #607
hey, i found a more general approach to this in #621. i went ahead and merged it, but feedback is still welcome. chrome is a bit picky about inline when the MIME type is unknown to chrome, though these are the recommended mimetypes. inlining works for |
hey T.Franzel,
please have a look at this PR and tell me what you think.
Also if the test coverage is sufficient or if you'd like to have to test the path where a spectacular_settings.title is available and used.
greetings and stay healthy,
Marius