openapi-core/openapi_core/schema
Janez Troha 3339e1311a Fix number validator
The `integer_types` is always a tuple. When checking
if an instance is a number it fails because it's doing a comparison against a tuple
instead of real type.

➜ python -c "from six import integer_types;import sys;print(integer_types);print(sys.version)"
(<type 'int'>, <type 'long'>)
2.7.16 (default, Apr  6 2019, 01:42:57)
[GCC 8.3.0]

➜ python3 -c "from six import integer_types;import sys;print(integer_types);print(sys.version)"
(<class 'int'>,)
3.7.3 (default, Apr  3 2019, 05:39:12)
[GCC 8.3.0]

And spec defines a number as both int and float https://swagger.io/docs/specification/data-models/data-types/#numbers so both validators need to support both types.
2019-05-15 19:00:38 +02:00
..
components Python2 compatibility module 2018-07-29 00:16:30 +01:00
content Rewrok exception handling 2018-09-13 10:58:35 +01:00
infos Schema objects restructure 2018-05-25 11:30:50 +01:00
media_types parameters/body should catch all schema errors 2018-09-13 10:58:35 +01:00
operations Rewrok exception handling 2018-09-13 10:58:35 +01:00
parameters Raw value type strict validation 2019-03-22 11:21:50 +00:00
paths Python2 compatibility module 2018-07-29 00:16:30 +01:00
properties Lazy schema references 2018-07-28 22:12:47 +01:00
request_bodies Rewrok exception handling 2018-09-13 10:58:35 +01:00
responses Rewrok exception handling 2018-09-13 10:58:35 +01:00
schemas Fix number validator 2019-05-15 19:00:38 +02:00
servers Rewrok exception handling 2018-09-13 10:58:35 +01:00
specs Rewrok exception handling 2018-09-13 10:58:35 +01:00
__init__.py Schema objects restructure 2018-05-25 11:30:50 +01:00
exceptions.py Exceptions restructure 2018-05-25 11:30:50 +01:00