abogushov / django-admin-json-editor

Adds json-editor for JSONField in Django Administration
MIT License
173 stars 61 forks source link

Doesn't validate the value with the JSONSchema. #12

Open Natim opened 6 years ago

Natim commented 6 years ago
import jsonschema

def clean(self):
        try:
            jsonschema.validate(data, SETTINGS_SCHEMA)
        except jsonschema.exceptions.ValidationError as e:
            raise forms.ValidationError(str(e))
coler-j commented 5 years ago

@Natim are you saying the above is a solution to this bug?

Natim commented 5 years ago

I think that's what I did yes