mirror of
https://github.com/correl/openapi-core.git
synced 2025-01-01 11:03:19 +00:00
Merge pull request #106 from benhowes/patch-1
Dont use value for determining any type
This commit is contained in:
commit
d07a9d0e63
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Schema(object):
|
|||
}
|
||||
|
||||
TYPE_VALIDATOR_CALLABLE_GETTER = {
|
||||
SchemaType.ANY: lambda x: x,
|
||||
SchemaType.ANY: lambda x: True,
|
||||
SchemaType.BOOLEAN: TypeValidator(bool),
|
||||
SchemaType.INTEGER: TypeValidator(integer_types, exclude=bool),
|
||||
SchemaType.NUMBER: TypeValidator(integer_types, float, exclude=bool),
|
||||
|
|
Loading…
Reference in a new issue