|
@@ -171,6 +171,10 @@ def check_type(value, info, source,
|
|
|
if value is None:
|
|
|
return
|
|
|
|
|
|
+ # Type name
|
|
|
+ if isinstance(value, str):
|
|
|
+ return
|
|
|
+
|
|
|
# Array type
|
|
|
if isinstance(value, list):
|
|
|
if not allow_array:
|
|
@@ -181,10 +185,6 @@ def check_type(value, info, source,
|
|
|
source)
|
|
|
return
|
|
|
|
|
|
- # Type name
|
|
|
- if isinstance(value, str):
|
|
|
- return
|
|
|
-
|
|
|
# Anonymous type
|
|
|
|
|
|
if not allow_dict:
|