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
docs: JSON input to JSONField is not parsed correctly #5873
Comments
This verified on release version 3.7.7. |
I have narrowed this down to the point where I am confident to conclude that the issue is that the |
You are right that this is related to I cannot however fix it for |
Just a quick update: It seems that |
I just realized that I hadn't gotten anything wrong. |
I do however see a potential bug in that the code for handling |
Fixes #5873. * Use Object type. * Add test for field_to_schema
Fixes encode#5873. * Use Object type. * Add test for field_to_schema
Checklist
master
branch of Django REST framework.Steps to reproduce
{"a": "test"}
to the field through docsJSONField.to_internal_value()
Expected behavior
The returned data is a dictionary with a single key
a
that has a value which is stringtest
.Actual behavior
The returned data is the string
{"a": "test"}
The text was updated successfully, but these errors were encountered: