openapi.validate_response raises jsonschema.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.
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 whenopenapi.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