Skip to content

Commit 0383a3d

Browse files
committed
Fix resolver for jsonschema validator created by SchemaValidatorsFactory.
1 parent bfbd728 commit 0383a3d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

openapi_core/validation/schemas/factories.py

+3-4
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,10 @@ def create(
5757
format_checker = self.get_format_checker(
5858
format_validators, extra_format_validators
5959
)
60-
resolver = schema.accessor.resolver # type: ignore
61-
with schema.open() as schema_dict:
60+
with schema.resolve() as resolved:
6261
jsonschema_validator = self.schema_validator_class(
63-
schema_dict,
64-
_resolver=resolver,
62+
resolved.contents,
63+
_resolver=resolved.resolver,
6564
format_checker=format_checker,
6665
)
6766

0 commit comments

Comments
 (0)