Skip to content

Support DRF >=3.11.0 validator API changes #2

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

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

Conversation

bd808
Copy link

@bd808 bd808 commented Nov 14, 2020

In encode/django-rest-framework#7062 the API for calling DRF validators changed to require the caller to inspect the validator instance to determine if the validator requires a second argument at call time.

In encode/django-rest-framework#7062 the API for calling DRF validators
changed to require the caller to inspect the validator instance to
determine if the validator requires a second argument at call time.
Usage with DRF >=3.11.0 requires this support.
@bd808
Copy link
Author

bd808 commented Nov 14, 2020

I would be happy to submit this to the upstream repo as well (or instead), but I would really love to avoid forking and creating a drf-friendly-errors-3 at pypi. :)

wmfgerrit pushed a commit to wikimedia/wikimedia-toolhub that referenced this pull request Nov 17, 2020
Add a forked version of the drf-friendly-errors-2 library which created
structured responses for API errors. These responses include error codes
which should make error handling by API consumers slightly easier to
implement.

Using a forked library is hopefully a temporary solution. Our changes to
implement support for current Django Rest Framework versions have been
submitted upstream
(<citixensas/drf-friendly-errors#2>).

Bug: T267432
Change-Id: I483bf69de84c61f7dc589f547ee3ba0efbfc5529
@mannpy mannpy mentioned this pull request Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant