diff --git a/idhub/admin/forms.py b/idhub/admin/forms.py index f9ceecc..6c5d49c 100644 --- a/idhub/admin/forms.py +++ b/idhub/admin/forms.py @@ -256,7 +256,11 @@ class ImportForm(forms.Form): def validate_jsonld(self, line, row): try: - jsonschema.validate(instance=row, schema=self.json_schema) + jsonschema.validate( + instance=row, + schema=self.json_schema, + format_checker=jsonschema.Draft202012Validator.FORMAT_CHECKER + ) except jsonschema.exceptions.ValidationError as err: msg = "line {}: {}".format(line+1, err) return self.exception(msg)