-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
RESPONSE refs can not be internal references. Why? #1388
Comments
When you say latest swagger-codegen, do you mean the master branch or develop_2.0? |
At first I thought it was both master and develop, but after doing a clean first, now it only happens in develop_2.0. |
The develop_2.0 branch has been merged into codegen master, so now I also get the exception when using the master branch. |
This commit does those things: * move the internal prefixes into the RefType enum (→ RefConstants class is not needed anymore) * add prefixes for RESPONSE and PATH * get rid of the exception when trying to use an internal reference of type RESPONSE or PATH * add test cases in GenericRefTest for PATH and RESPONSE.
Related to this, there seems to be no |
…se-refs Fix Issue #1388: allow path and response refs, too.
this has been added and will be available in 1.5.4 |
Hi,
I'm having troubles using the latest swagger-codegen. I get this error:
This exception is thrown by swagger-core here:
https://github.com/swagger-api/swagger-core/blob/master/modules/swagger-models/src/main/java/io/swagger/models/refs/GenericRef.java#L37
In the comment it says "PATH AND RESPONSE refs can only be URL or RELATIVE", but my question is, where does it say this in the spec? The Responses object doesn't mention any limitations to a reference object.
I might be missing something, but this exception confused me (especially because the online codegen doesn't complain)
The text was updated successfully, but these errors were encountered: