That encoder is used when querying the API for "application/json" content type.
It handles more encoding cases than the default one (notably it knows how to
encode a swh.model.collections.ImmutableDict), so let's also use it when
generating HTML documentation for the API endpoints.
Details
Details
- Reviewers
vlorentz - Group Reviewers
Reviewers - Commits
- rDWAPPS37a8f590ad54: api/apiresponse: Use DRF JsonEncoder in documented endpoint views
Diff Detail
Diff Detail
- Repository
- rDWAPPS Web applications
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
Comment Actions
Build is green
Patch application report for D3826 (id=13465)
Rebasing onto b98a351cea...
Current branch diff-target is up to date.
Changes applied before test
commit 37a8f590ad54c37ab25155cac8058ddefd5d8b3d Author: Antoine Lambert <antoine.lambert@inria.fr> Date: Fri Aug 21 17:18:20 2020 +0200 api/apiresponse: Use DRF JsonEncoder in documented endpoint views That encoder is used when querying the API for "application/json" content type. It handles more encoding cases than the default one (notably it knows how to encode a swh.model.collections.ImmutableDict), so let's also use it when generating HTML documentation for the API endpoints.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/340/ for more details.