Migrating From RefResolver, unable to resolve $ref #1215
Replies: 1 comment 2 replies
-
Hey! It's hard to say exactly what bit is missing. Have you seen this page which has some info on migrating and/or files specifically? In general the shortest thing that may be helpful is "avoid relative references for file paths", they're ambiguous and/or nonportable (i.e. your error is saying there's no file at Beyond that I'm not sure which bit to help with -- what is |
Beta Was this translation helpful? Give feedback.
-
Subject: Issue with $ref resolution after updating to the latest jsonschema version
Hi there 👋,
I hope this finds you well. I recently updated the code to the latest jsonschema version, and as part of the process, I refactored the following code:
The updated code looks like:
However, during testing, I encountered the following issue:
jsonschema.exceptions._RefResolutionError: <urlopen error [Errno 2] No such file or directory: '../common/core.json'>
The JSON schema is using $ref as follows:
json
Copy code
After reviewing the documentation, I couldn't find any information on how to handle the file URI in this context.
Am I missing something or doing something incorrectly? Your insights and guidance would be highly appreciated.
Thank you for your time and assistance! 🙏
Beta Was this translation helpful? Give feedback.
All reactions