[Bug]: _validate_reference
cannot resolve $ref with a relative file path
#852
Labels
kind/bug
Indicates an issue
Actual Behavior
openapi.validate_response
raisesjsonschema.exceptions._WrappedReferencingError
when the response schema defined in a different file includes$ref
that refers to a schema in another file.Expected Behavior
The validator should not raise the error for
$ref
.I ensured no spec-related error occured when
openapi.check_spec()
called.Steps to Reproduce
openapi.yaml
paths/books.yaml
schemas/book.yaml
validate.py
Run:
OpenAPI Core Version
3.0.0,3.1.0
OpenAPI Core Integration
Nothing
Affected Area(s)
validation
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: