-
Notifications
You must be signed in to change notification settings - Fork 534
Relative references from a file in a sub-folder to other folders do not resolve #305
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
Comments
Thank you for submitting this. Are you testing with master or the latest release? |
In the future, consider sending a PR with failing tests. Then we're all testing the same thing. But since you did organize your tests, here is my test feedback:
Details: Case 3: Paging:
type: object
properties:
total_items:
type: integer the correct reference is actually this:
|
So thank you for getting these tests in. It was a long time coming, and I've gone through and carefully recreated your scenarios. This will go in the next parser release, then into codegen. |
Has this been fixed , i am still facing the problem with swagger-codegen v2.3.0 |
Originally from swagger-codegen swagger-api/swagger-codegen#3614
If you have a directory structure like
then from file1.yaml it is unable to resolve references to file3.yaml or file2.yaml.
For the case in which file1 references file2, the exception thrown is:
I created a suite of tests that I believe illustrate the problem, and attached it swagger-relative-file-references.zip.
The test cases that compare "./file1.yaml" vs "file.yaml" can likely be ignored, I created them for my own education to verify which formats of a relative reference were acceptable.
The text was updated successfully, but these errors were encountered: