Skip to content
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

java.util.Map < java.lang.String, java.util.Collection < java.lang.String > > should not need sources when set as the @responseType #113

Open
ghost opened this issue Oct 8, 2015 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 8, 2015

When trying to set the @responseType java.util.List<java.lang.String> or any of the java collection types, it requires sources. Any chance that sources not be required for the java collection types.

@conorroche
Copy link

one of the tests uses @responseType java.util.List but not java.util.List<java.lang.String> can you check if the former works for you, is there a stack trace or other error you are seeing and finally can you confirm what version you are using?

@ghost
Copy link
Author

ghost commented Oct 9, 2015

so I was actually trying to set @responseType to java.util.Map < java.lang.String, java.util.Collection < java.lang.String > >.

This resulted in an error that told me some thing to the effect of (as stated in the documentation of @responseType on this page https://github.com/teamcarma/swagger-jaxrs-doclet) -
NOTE: if the response class is not in the same maven project as the one the doclet plugin is on then you will need to include the response class in the source of your project. One way to do this in maven is to use the maven-dependency-plugin's unpack goal to unpack the *.java files of the dependency source jar to a temporary directory such as ${project.build.directory}/additional-sources and then attach that directory to your project source using the build-helper-maven-plugin's add-source goal.

@ghost ghost changed the title @responseType java.util.List<java.lang.String> should not need sources java.util.Map < java.lang.String, java.util.Collection < java.lang.String > > should not need sources Oct 13, 2015
@ghost ghost changed the title java.util.Map < java.lang.String, java.util.Collection < java.lang.String > > should not need sources java.util.Map < java.lang.String, java.util.Collection < java.lang.String > > should not need sources when set as the @responseType Oct 13, 2015
@alfsch
Copy link

alfsch commented May 24, 2016

Currently I even can't use this:

 * @responseType super.duper.device.LoggerSetting

And this ResponseType is in Sources

I'm Using 1.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants