django-rest-framework-yaml
django-rest-framework-yaml copied to clipboard
YAML support for Django REST Framework
I've forked it. `pip install drf-yaml` at [Qu4tro/drf-yaml](https://github.com/Qu4tro/drf-yaml) @jpadilla Let me know if you want to do anything. i.e Integrate the fork changes into the original or something else. I'm...
Do not sort if `TypeError` is raised and gracefully proceed.
The sort https://github.com/jpadilla/django-rest-framework-yaml/blob/2e0e219e489984f82c0bad458e0b7174aec110c9/rest_framework_yaml/encoders.py#L42 results in the following exception if the dictionary contains a string and null type (which is still valid yaml) ``` Traceback (most recent call last): File ".../venv/lib/python3.10/site-packages/django/core/handlers/exception.py",...
Bumps [wheel](https://github.com/pypa/wheel) from 0.24.0 to 0.38.1. Changelog Sourced from wheel's changelog. Release Notes UNRELEASED Updated vendored packaging to 22.0 0.38.4 (2022-11-09) Fixed PKG-INFO conversion in bdist_wheel mangling UTF-8 header values...
Upon requesting a `GET` resource: ``RepresenterError at /api/admin/v1/xyz ('cannot represent an object', )`` Django Version: 3.2.4 Python Version: 3.8.5 JSON Renderer works just fine. Has anyone else stumbled upon this?
Some consumers of API required JSON in response. So this module should support different type of output/responses ( especially in json )
Convert UUID objects to string, otherwise pyyaml will fail to convert.
@jpadilla What's the future of this project? Would you be open to adding maintainers? Or transferring the project? The code hasn't been updated for years, and now starts to break...
When you raise a ``NotFound`` exception in django rest framework, the YAML renderer triggers an internal server error. So when you do the following in a view: ```python raise exceptions.NotFound("some...