Skip to content

OpenAPI 3.1 schema validator uses OpenAPI 3.0 format checker #506

Open
@p1c2u

Description

@p1c2u

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions