You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Django REST Framework ignores the Content-Type on request body parts, so it doesn't know that they are JSON-encoded. Instead, it just tries to decode each part as if it was an `str()`-encoded value. Change the encoding to match the decoding. The only type this matters for is `str`, because `json.dumps` and `str` produce different encodings for `str` values. Remove `none_type` from the list of encodable types since, to my knowledge, there's no way to encode a `None` value as a `multipart/form-data` part in a way that DRF will understand. |
3 years ago | |
|---|---|---|
| .. | ||
| templates | 3 years ago | |
| generate.sh | 3 years ago | |
| generator-config.yml | 4 years ago | |
| postprocess.py | 3 years ago | |
| requirements.txt | 4 years ago | |