django-admin-json-editor icon indicating copy to clipboard operation
django-admin-json-editor copied to clipboard

Doesn't validate the value with the JSONSchema.

Open Natim opened this issue 6 years ago • 2 comments

import jsonschema

def clean(self):
        try:
            jsonschema.validate(data, SETTINGS_SCHEMA)
        except jsonschema.exceptions.ValidationError as e:
            raise forms.ValidationError(str(e))

Natim avatar Mar 23 '18 15:03 Natim

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

coler-j avatar Feb 11 '19 16:02 coler-j

I think that's what I did yes

Natim avatar Feb 11 '19 20:02 Natim