Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds support to DEFAULT_JSON_ENCODER #483

Open
wants to merge 21 commits into
base: master
Choose a base branch
from

Conversation

gustav0
Copy link

@gustav0 gustav0 commented Oct 28, 2019

Hello,

I've been using custom JSON encoders for a while with drf-yasg but haven't seen any support for it.

A while ago someone requested support for the django Decimal field and it was implemented. But i think this might be a simple solution if people want to use their own fields without needing to add custom code, just use their own encoder (which they probabbly they already have if they are using drf).

I'm willing to make any changes and validations you guys suggest and update the documentation.

@JoelLefkowitz JoelLefkowitz changed the base branch from master to 1.21.x July 17, 2022 17:20
@JoelLefkowitz JoelLefkowitz added 1.21.x Release target in 1.21.x Incomplete labels Jul 17, 2022
@JoelLefkowitz JoelLefkowitz added 1.22.x Release target in 1.22.x and removed 1.21.x Release target in 1.21.x labels Jul 17, 2022
@creyD
Copy link

creyD commented Jul 19, 2022

Screenshot 2022-07-19 at 09 01 01

Thank you for your PR! You only replaced it in utils, shouldn't the instances in renderers also be replaced? Also the docs will have to be updated for this additional setting.

@JoelLefkowitz JoelLefkowitz deleted the branch axnsan12:master October 17, 2024 11:55
@JoelLefkowitz JoelLefkowitz reopened this Oct 17, 2024
@JoelLefkowitz JoelLefkowitz changed the base branch from 1.21.x to master October 17, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.22.x Release target in 1.22.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants