python-validators / validators

Python Data Validation for Humans™.
MIT License
977 stars 155 forks source link

ipfs uri validation #195

Closed SlimBeji closed 7 months ago

SlimBeji commented 3 years ago

Hello,

Thanks for this awesome library.

I just want to report a tiny issue regarding uri validation:

import validators
uri = "ipfs://someRandomProprietaryAACFile"
validators.url(uri)

The above code returns a ValidationFailure despite the fact that the uri is a valid ipfs uri. Probably validation does not take into account the ipfs protocol.

Is it possible to add it to validators.url?

Thanks

yozachar commented 1 year ago

related #40 #55