Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Natim opened this issue Mar 23, 2018 · 2 comments
Open

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

Natim opened this issue Mar 23, 2018 · 2 comments

Comments

@Natim
Copy link

Natim commented Mar 23, 2018

import jsonschema

def clean(self):
        try:
            jsonschema.validate(data, SETTINGS_SCHEMA)
        except jsonschema.exceptions.ValidationError as e:
            raise forms.ValidationError(str(e))
@coler-j
Copy link

coler-j commented Feb 11, 2019

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

@Natim
Copy link
Author

Natim commented Feb 11, 2019

I think that's what I did yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants