-
-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No such file or directory: '\\\\\\schemas.json' when using local reference #1861
Comments
I'm having the same issue after breaking out my schemas, parameters, and paths into their own subdirectories in an effort to organize a large yaml. I discovered that this is working fine in connexion 3.0.2. If I downgrade to connexion 3.0.2, all is well. Looks like 3.0.3 and above include the breaking change. |
@eharvey71 are you on Windows as well?
I don't immediately see any relevant changes in 3.0.3 |
I’m still investigating. The first time it broke, I was on windows. It
worked on MacOS for me but I was on 3.0.2. Once I installed 3.0.5, it broke
on MacOS. Either way, no dice on Windows 10. I’ve been through every
module, hoping to prove helpful.
…On Tue, Feb 13, 2024 at 4:58 PM Robbe Sneyders ***@***.***> wrote:
@eharvey71 <https://github.com/eharvey71> are you on Windows as well?
If I downgrade to connexion 3.0.2, all is well. Looks like 3.0.3 and above
include the breaking change.
I don't immediately see any relevant changes in 3.0.3
—
Reply to this email directly, view it on GitHub
<#1861 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAH6LDYNXMPNI2KCDNMWZ43YTPOZNAVCNFSM6AAAAABCXZ7H2CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBSG4YDOMBSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Maybe there is something broken with the jsonschema library. This worked for me as a temporary fix:
|
This is an elegant solution and thank you. I have my yml files divided into subdirectories for paths, parameters, schemas, etc...
I can create the utility class and leverage my basedir in all of this, but I'm getting errors at startup:
Paths are like this to specs, where my swagger.yml refers to the proper paths:
swagger.yml sample:
I would think this solution would be looking at the file associated with each $ref. Not sure why that's happening but I'll keep at it. |
New issue opened: #1909 |
I'm no longer having this issue with 3.1 |
Description
I'm getting this error when i use local references to a spec file in the same folder:
_RefResolutionError: [Errno 2] No such file or directory: '\\\\\\schemas.json'
My OS is windows10/11. I did not test it on linux.
Steps to reproduce
This is my specification:
And this is my schemas.json file:
Additional info:
Output of the commands:
Python 3.11.7
connexion 3.0.5
The text was updated successfully, but these errors were encountered: