mirror of
https://github.com/correl/openapi-core.git
synced 2024-11-28 19:19:52 +00:00
9 lines
178 B
Python
9 lines
178 B
Python
"""OpenAPI core schemas util module"""
|
|
from distutils.util import strtobool
|
|
|
|
|
|
def forcebool(val):
|
|
if isinstance(val, str):
|
|
val = strtobool(val)
|
|
|
|
return bool(val)
|