Skip to content

Upgrade openapi-{schema,spec}-validator versions #399

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

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openapi_core/spec/paths.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from jsonschema.validators import RefResolver
from openapi_spec_validator import default_handlers
from openapi_spec_validator import openapi_v3_spec_validator
from openapi_spec_validator import openapi_v30_spec_validator
from openapi_spec_validator.validators import Dereferencer
from pathable.paths import AccessorPath

Expand All @@ -27,7 +27,7 @@ def from_dict(

class OpenAPIv30Spec(Spec):

validator = openapi_v3_spec_validator
validator = openapi_v30_spec_validator

@classmethod
def create(
Expand Down
4 changes: 2 additions & 2 deletions openapi_core/spec/shortcuts.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""OpenAPI core spec shortcuts module"""
from jsonschema.validators import RefResolver
from openapi_spec_validator import default_handlers
from openapi_spec_validator import openapi_v3_spec_validator
from openapi_spec_validator import openapi_v30_spec_validator
from openapi_spec_validator.validators import Dereferencer

from openapi_core.spec.paths import SpecPath
Expand All @@ -14,7 +14,7 @@ def create_spec(
validate_spec=True,
):
if validate_spec:
openapi_v3_spec_validator.validate(spec_dict, spec_url=spec_url)
openapi_v30_spec_validator.validate(spec_dict, spec_url=spec_url)

spec_resolver = RefResolver(spec_url, spec_dict, handlers=handlers)
dereferencer = Dereferencer(spec_resolver)
Expand Down
Loading