@Path("/v1")
@Api(value="root")
@XmlRootElement(name=RootResource.RESOURCE_TYPE)
@XmlDiscriminatorValue(RootResource.RESOURCE_TYPE)
public class RootResource {
@Path(REFLIST_DBS + "/{dbkey}")
@ApiOperation(value="Retrieve a database resource")
public DatabaseResource getDatabase(@ApiParam(name="dbkey",value="Database key") @PathParam("dbkey") String dbKey) throws WGException {
return new DatabaseResource(this, dbKey);
}
public RestApplication getApplication() {
return _application;
}
}java.lang.IllegalArgumentException: Conflicting setter definitions for property "threshold": org.apache.log4j.spi.LoggerRepository#setThreshold(1 params) vs org.apache.log4j.spi.LoggerRepository#setThreshold(1 params)
at com.fasterxml.jackson.databind.introspect.POJOPropertyBuilder.getSetter(POJOPropertyBuilder.java:293)
at io.swagger.jackson.ModelResolver.resolve(ModelResolver.java:264)
at io.swagger.jackson.ModelResolver.resolve(ModelResolver.java:151)
...
at io.swagger.jaxrs.Reader.read(Reader.java:146)
at io.swagger.jaxrs.config.BeanConfig.setScan(BeanConfig.java:170)
at de.innovationgate.wga.services.rest.RestApplication.<init>(RestApplication.java:267)--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This may actually be due to a bug. Can you try 1.5.2?
I take it the threshold property is found in whatever class is behind _application?
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I take it the
thresholdproperty is found in whatever class is behind_application?
BeanConfig cfg = new BeanConfig();
cfg.setVersion("1.0");
cfg.setSchemes(new String[] {"http", "https"});
cfg.setHost("myhost");
cfg.setBasePath("/services/rest/");
cfg.setResourcePackage("...my resource packages comma separated...");
cfg.setScan(true);
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Can you please open an issue for it on swagger-core?
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I want to clarify something about our milestone management - while an issue may be assigned a milestone, it does not mean it's going to be included in that milestone. It's a best effort process, and we cannot guarantee specific delivery dates. We do try to clear out P1s as soon as we can, but even that's not always the case.And as usual, PRs are welcome.
On Tue, Aug 11, 2015 at 12:27 AM, Oliver Weise <kis...@googlemail.com> wrote:
Here's the issue. I don't have a workaround yet but the bug is already scheduled to be fixed with 1.5.3.
Am Montag, 10. August 2015 23:58:23 UTC+2 schrieb emmanuel twizeyimna:I'm having a similar issue. I have a method with JAX-RS annotations but without Swagger annotations. BeanConfig.setScan throws an expression because a parameter to that method can't be parsed to JSON (it's a class within a third party JAR that has overloaded setter methods). I expect swagger to skip scanning resource methods without @ApiOperation, but it's not the case. @Oliver, have you found any solution yet? If not, can you give me the issue number?
On Monday, August 10, 2015 at 6:20:32 AM UTC-5, Oliver Weise wrote:
Am Donnerstag, 6. August 2015 17:24:52 UTC+2 schrieb Ron:Can you please open an issue for it on swagger-core?Done. Thanks for your help!
--
You received this message because you are subscribed to the Google Groups "Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsub...@googlegroups.com.