Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenAPI 3.1 schema validator uses OpenAPI 3.0 format checker #506

Open
p1c2u opened this issue Feb 7, 2023 · 0 comments
Open

OpenAPI 3.1 schema validator uses OpenAPI 3.0 format checker #506

p1c2u opened this issue Feb 7, 2023 · 0 comments
Labels
area/schema-validator Indicates an issue on schema validator area. kind/bug/confirmed

Comments

@p1c2u
Copy link
Collaborator

p1c2u commented Feb 7, 2023

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 p1c2u added kind/bug/confirmed area/schema-validator Indicates an issue on schema validator area. labels Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/schema-validator Indicates an issue on schema validator area. kind/bug/confirmed
Projects
None yet
Development

No branches or pull requests

1 participant