-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
[WIP]Ticket #21442 -- Configurable request parsing. #16962
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
Conversation
Hi @SirAbhi13 -- Hope all is well. This PR demonstrates a change in behavior in Say I submit a form-data request with two parts, the second one being some JSON. I may have an request that looks something like this: curl --location 'http://127.0.0.1:8000/polls/test/' \
--form 'name="David"' \
--form 'JSON="{\"menu\": {
\"header\": \"SVG Viewer\",
\"items\": [
{\"id\": \"Open\"},
{\"id\": \"Help\"},
{\"id\": \"About\", \"label\": \"About Adobe CVG Viewer...\"}
]
}}";type=application/json' Before this patch, <QueryDict: {
'name': ['David'],
'JSON': ['{"menu": {\n "header": "SVG Viewer",\n "items": [\n {"id": "Open"},\n {"id": "Help"},\n {"id": "About", "label": "About Adobe CVG Viewer..."}\n ]\n}}']
}> With this patch it becomes a <QueryDict: {
'name': ['David'],
'JSON': [{'menu': {'header': 'SVG Viewer', 'items': [{'id': 'Open'}, {'id': 'Help'}, {'id': 'About', 'label': 'About Adobe CVG Viewer...'}]}}]
}> |
Hi David, |
This is the concern. We want to add more tests to make sure the existing behaviour doesn't change. The new functionality can then be introduced with the new names.
Super. 👍 Looking forward to seeing your progress. I'd like to see something soon as time is going by quickly. |
Hi @smithdc1, hope all has been well. I have been working to the add the user interface of the custom parser along with this and will add those changes once we have figured out the method to address this issue, it stems from RequestFactory from what i can see in the errors. I thought about changing the tuple that is returned in multipart itself but it would change the behaviour too much. 🤔 |
Hi @smithdc1, If the mentors approve the this design, I can add tests too. |
Closing due to inactivity. |
Google Summer Of Code
Proposal LInk : Add Configurable Content Type Parsing and Modernise Request Object"
Ticket : 21442
Forum Post: Link