openapi-core icon indicating copy to clipboard operation
openapi-core copied to clipboard

OpenAPI 3.1 schema validator uses OpenAPI 3.0 format checker

Open p1c2u opened this issue 2 years ago • 0 comments

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

p1c2u avatar Feb 07 '23 05:02 p1c2u