-
Notifications
You must be signed in to change notification settings - Fork 533
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
Parser does not handle reference in external file #299
Comments
@abhijith-prabhakar does it work if you put "./error_details.json" instead of "error_details.json"? |
Yes, I have tried it. It gives below error
|
Oh, I think this was fixed in #284 |
I worked with Ron and Tony to test out latest snapshot of both codegen and parser. It was not fixed in those as well. It would nice if someone can double check. |
Oh, I think I understand why this is happening. This is a bug indeed. |
Thanks for checking. Any ETA on the fix? |
Should be fixed now. |
I am using swagger-codegen(v2.2.1) for java-jaxrs and my file structure is given below
swagger.json is referring to error.json which in turn is referring to error_details.json and link_description.json.
In error.json if I provide reference
"$ref":"error_details.json"
swagger codegen cannot find error_details.json and is not working. But, if I provide reference as"$ref":"./json-schema/link_description.json"
(relative to swagger.json) then codegen works fine, but swagger-ui breaks.The text was updated successfully, but these errors were encountered: