openapi-core
openapi-core copied to clipboard
OpenAPI 3.1 schema validator uses OpenAPI 3.0 format checker
Given:
from openapi_core.unmarshalling.schemas import oas31_schema_unmarshallers_factory
spec = Spec.from_dict({}, validator=None)
unmarshaller = oas31_schema_unmarshallers_factory.create(spec)
then:
unmarshaller.validator.format_checker
<FormatChecker checkers=['binary', 'byte', 'date', 'date-time', 'double', 'email', 'float', 'idn-email', 'idn-hostname', 'int32', 'int64', 'ipv4', 'ipv6', 'password', 'regex', 'time', 'uuid']>
Expected:
Has no binary
and byte
checkers registered