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
- Branch
- api-json-encode-fix
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 14728 Build 22694: Phabricator diff pipeline on jenkins Jenkins console · Jenkins Build 22693: arc lint + arc unit
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.