[Bug]: unmarshal cannot resolve $ref with a relative file path #893
Labels
area/unmarshalling
Indicates an issue on unmarshalling area.
kind/bug/confirmed
kind/bug
Indicates an issue
Actual Behavior
V30ResponseUnmarshaller.unmarshal 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 unmarshaller should not raise the error for $ref.
Steps to Reproduce
openapi.yaml
paths/books.yaml
schemas/book.yaml
validate.py
OpenAPI Core Version
0.19.3
OpenAPI Core Integration
NA
Affected Area(s)
unmarshalling, schema
References
Almost a full copy of the previous issue.
#852
Anything else we need to know?
Similar fix to be done here:
openapi-core/openapi_core/validation/schemas/validators.py
Lines 38 to 42 in 2e98965
Would you like to implement a fix?
Yes
The text was updated successfully, but these errors were encountered: