Specification validationΒΆ
By default, on OpenAPI creation time, the provided specification is also validated.
If you know you have a valid specification already, disabling the validator can improve the performance.
from openapi_core import Config
config = Config(
spec_validator_cls=None,
)
openapi = OpenAPI.from_file_path('openapi.json', config=config)