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

Support for example phone number in invalid message in serializer PhoneNumberField #623

Open
hfroot opened this issue Oct 23, 2024 · 0 comments

Comments

@hfroot
Copy link

hfroot commented Oct 23, 2024

Hi there, we're using phonenumber_field.serializerfields.PhoneNumberField to validate a user-entered phone number. At the moment, when it is invalid, by default the message just says that it is invalid, instead of providing an example of a valid number.

From what I understand, SplitPhoneNumberField has that functionality by default.

Is there any reason not to extend the same behaviour to the serializer field? I'd be happy to give it a go.

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

No branches or pull requests

1 participant