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.
Roman Donchenko 3d9c5add94
SDK: fix string field serialization for multipart/form-data requests (#5479)
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
..
cvat_sdk PyTorch adapter: add a way to disable cache updates (#5549) 3 years ago
gen SDK: fix string field serialization for multipart/form-data requests (#5479) 3 years ago
.gitignore Check server version in SDK (#4935) 3 years ago
.openapi-generator-ignore Add 2nd layer of SDK (#19) 4 years ago
.remarkignore Add CVAT SDK package (#7) 4 years ago
pyproject.toml Add 2nd layer of SDK (#19) 4 years ago