Keats / validator

Simple validation for Rust structs
MIT License
2k stars 144 forks source link

phone feature is missing in new version #302

Closed sam-rusty closed 6 months ago

sam-rusty commented 7 months ago

I am trying to update my app to use 0.17.0, but looks like phone feature is no longer available. what is the alternative?

Keats commented 7 months ago

You can use the crate we were using directly and write a custom validator using it

vinicius73 commented 7 months ago

@Keats is it intentional? or there plans to solve it?

Keats commented 7 months ago

It was intentional yes. It's better to write a custom validator for the kind of phone number you want to accept than adding the options to the validator