Skip to content

Commit

Permalink
a list is valid json (#2067)
Browse files Browse the repository at this point in the history
  • Loading branch information
kddejong committed Jun 28, 2021
1 parent 2ae8ac0 commit 49b0be3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def _value_check(self, value, path, item_type, strict_check, extra_args):
def check_primitive_type(self, value, item_type, path, strict_check):
"""Chec item type"""
matches = []
if isinstance(value, dict) and item_type == 'Json':
if isinstance(value, (dict, list)) and item_type == 'Json':
return matches
if item_type in ['String']:
if not isinstance(value, (six.string_types)):
Expand Down

0 comments on commit 49b0be3

Please sign in to comment.