Skip to content

Fix OpenAPISchema rendering for timedelta - #7641

Merged
lovelydinosaur merged 4 commits into
encode:masterfrom
pchiquet:fix-json-api-render-timedelta
Mar 10, 2021
Merged

lovelydinosaur merged 4 commits into
encode:masterfrom
pchiquet:fix-json-api-render-timedelta

Conversation

@pchiquet

@pchiquet pchiquet commented Nov 18, 2020 •

Copy link
Copy Markdown
Contributor

Closes #7640

@lovelydinosaur

Copy link
Copy Markdown
Member

Makes sense yup, since we do the same for JSONRenderer. Thanks!

@lovelydinosaur
lovelydinosaur merged commit c603b98 into encode:master Mar 10, 2021
stefanacin pushed a commit to stefanacin/django-rest-framework that referenced this pull request Mar 22, 2021
* Add failing test when rendering to json a schema with timedelta

* Fix JSONOpenAPIRenderer for fields with default=timedelta()

* fix isort

* fix test for python 3.5

Co-authored-by: Pierre Chiquet <[email protected]>
@lovelydinosaur lovelydinosaur mentioned this pull request Mar 25, 2021
sigvef pushed a commit to sigvef/django-rest-framework that referenced this pull request Dec 3, 2022
* Add failing test when rendering to json a schema with timedelta

* Fix JSONOpenAPIRenderer for fields with default=timedelta()

* fix isort

* fix test for python 3.5

Co-authored-by: Pierre Chiquet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

OpenAPI Schema: rendering to json fails for timedelta

3 participants