Skip to content

Commit 3d29268

Browse files
authored
Dont use value for determining any type
otherwise Falsy values are not valid types
1 parent db5d825 commit 3d29268

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

openapi_core/schema/schemas/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Schema(object):
4949
}
5050

5151
TYPE_VALIDATOR_CALLABLE_GETTER = {
52-
SchemaType.ANY: lambda x: x,
52+
SchemaType.ANY: lambda x: True,
5353
SchemaType.BOOLEAN: TypeValidator(bool),
5454
SchemaType.INTEGER: TypeValidator(integer_types, exclude=bool),
5555
SchemaType.NUMBER: TypeValidator(integer_types, float, exclude=bool),

0 commit comments

Comments
 (0)