Module aws_lambda_powertools.event_handler.openapi.pydantic_loader
Expand source code
try:
from pydantic.version import VERSION as PYDANTIC_VERSION
PYDANTIC_V2 = PYDANTIC_VERSION.startswith("2.")
except ImportError:
PYDANTIC_V2 = False