mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-24 11:09:54 +00:00
3339e1311a
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. |
||
---|---|---|
.. | ||
test_operations.py | ||
test_parameters.py | ||
test_paths.py | ||
test_request_bodies.py | ||
test_schemas.py | ||
test_schemas_registry.py | ||
test_specs.py |