Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OpenAPI: Map renderers/parsers for request/response media-types.#6865

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
carltongibson merged 6 commits intoencode:masterfromknivets:openapi_multipart
Nov 6, 2019

Conversation

@knivets
Copy link
Contributor

Issue#6863

TL;DR I ended up implementing an automatic parser/renderer mapping to corresponding request/response media type. The tests are passing.

So while testing this I discovered that every endpoint that supports request body, accepts multipart requests even if there are no file fields in serializers. This is correct since this is how DRF default parsers setting actually works. So there is no longer a need to handle endpoints that accept files in a special way. Anyway, this is just an idea let me know what you think@carltongibson@tomchristie

@knivets
Copy link
ContributorAuthor

@carltongibson and this one too 😄

@carltongibson
Copy link
Collaborator

HI@knivets. Yes. It's on the list. Just a question of bandwidth. They're not forgotten. 👍

Copy link
Collaborator

@carltongibsoncarltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Hi@knivets. OK, this looks great.

We could probably just do with some tests checking a view with different parsers/renderers, to confirm the request/responses are correctly generated. Do you have the bandwidth to add a couple of those?

@carltongibson
Copy link
Collaborator

(I squashed, rebased, and edited a little bit...)

@carltongibsoncarltongibson self-assigned thisSep 3, 2019
@carltongibsoncarltongibson changed the title[WIP] OpenAPI multipart media typeSchemas: Map renderers/parsers for request/response media-types.Sep 3, 2019
@knivets
Copy link
ContributorAuthor

Sure, I'll try to add some tests by the end of the week.

@knivets
Copy link
ContributorAuthor

Hey@carltongibson, please have a look at the updates I've pushed. Let me know if you have any feedback.

@knivets
Copy link
ContributorAuthor

Any update on this@carltongibson?

@carltongibsoncarltongibson self-requested a reviewOctober 1, 2019 15:46
@carltongibson
Copy link
Collaborator

Hi@knivets. Sorry for the delay. BeenBusy™. Looking good — I'll have a proper look this week. 🥇

@knivets
Copy link
ContributorAuthor

No worries@carltongibson

@carltongibsoncarltongibson mentioned this pull requestOct 10, 2019
@carltongibsoncarltongibson added this to the3.11 Release milestoneNov 6, 2019
Copy link
Collaborator

@carltongibsoncarltongibson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

OK, great stuff. Sorry for the delay in getting to you@knivets! Thanks so much. 🥇

@carltongibsoncarltongibson merged commit8b06ce7 intoencode:masterNov 6, 2019
@carltongibsoncarltongibson changed the titleSchemas: Map renderers/parsers for request/response media-types.OpenAPI: Map renderers/parsers for request/response media-types.Nov 6, 2019
pchiquet pushed a commit to pchiquet/django-rest-framework that referenced this pull requestNov 17, 2020
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull requestDec 3, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@carltongibsoncarltongibsoncarltongibson approved these changes

Assignees

@carltongibsoncarltongibson

Projects

None yet

Milestone

3.11 Release

Development

Successfully merging this pull request may close these issues.

2 participants

@knivets@carltongibson

[8]ページ先頭

©2009-2025 Movatter.jp