We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9bb11 commit 88efa69Copy full SHA for 88efa69
openapi_core/schema/schemas/util.py
@@ -1,9 +1,10 @@
1
"""OpenAPI core schemas util module"""
2
from distutils.util import strtobool
3
+from six import string_types
4
5
6
def forcebool(val):
- if isinstance(val, str):
7
+ if isinstance(val, string_types):
8
val = strtobool(val)
9
10
return bool(val)
0 commit comments