Sibyx / django_api_forms

Declarative Django request validation for RESTful APIs

Home Page:https://sibyx.github.io/django_api_forms/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Raise ValidationError in invalid Data URI by default

Sibyx opened this issue · comments

From 1.0 ValidationError suppose to be raised if value of FileField and ImageField is not valid Data URI.

Hi @Sibyx, I would like to work on this issue!.

Hi @bumblebee211196, feel free to create a PR. Please keep in mind that exception have to be raised only if library version is >= 1.0.0. Major release is not ready yet, I am currently rewriting validation core with some breaking changes in errors property so your code should contain some kind of condition which will check version of the library.

Alright, will keep in mind the library version.