mirror of
https://github.com/correl/openapi-core.git
synced 2024-12-01 11:09:57 +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)
|