teamcarma / swagger-jaxrs-doclet

This fork is no longer actively maintained, please switch to https://github.com/conorroche/swagger-doclet
Apache License 2.0
81 stars 38 forks source link

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 9 years ago

ghost commented 9 years ago

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

conorroche commented 9 years ago

one of the tests uses @responseType java.util.List but not java.util.List 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 commented 9 years ago

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.

alfsch commented 8 years ago

Currently I even can't use this:

 * @responseType super.duper.device.LoggerSetting

And this ResponseType is in Sources

I'm Using 1.0.6