Skip to content

Commit

Permalink
Fix typo in validation error (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
powdahound authored Feb 16, 2024
1 parent f3ab788 commit 84f456e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django_jsonform/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def validate_array(self, schema, data, coords, *, raise_exc=False):
data_type_norm = normalize_keyword(data_type)
raise JSONSchemaValidationError(
_(
'Data sturcture does not match schema. '
'Data structure does not match schema. '
'Expected an array (list) but got %(schema_type)s instead.'
),
params={'schema_type': '%s (%s)' % (data_type_norm, data_type) if data_type_norm else data_type}
Expand Down Expand Up @@ -215,7 +215,7 @@ def validate_object(self, schema, data, coords, raise_exc=False):
data_type_norm = normalize_keyword(data_type)
raise JSONSchemaValidationError(
_(
'Data sturcture does not match schema. '
'Data structure does not match schema. '
'Expected an object (dict) but got %(schema_type)s instead.'
),
params={'schema_type': '%s (%s)' % (data_type_norm, data_type) if data_type_norm else data_type}
Expand Down

0 comments on commit 84f456e

Please sign in to comment.