Mysterious Entry in my Swagger Doc

Recently, I’ve been working with Swagger to document my team’s APIs, and had a mysterious entry popup (default/entity). It looks something like this:

Swagger
Swagger

I threw some tracing into action:

(io.swagger.*=ALL:*=INFO)
[6/7/16 7:51:24:912 EDT] 00000039 id= io.swagger.jaxrs.utils.ReaderUtils < collectParameters Exit 
 []
[6/7/16 7:51:24:912 EDT] 00000039 id= io.swagger.jaxrs.utils.ReaderUtils < collectFieldParameters Exit 
 []
[6/7/16 7:51:24:912 EDT] 00000039 id= io.swagger.jaxrs.utils.ReflectionUtils > isOverriddenMethod Entry 
 public javax.ws.rs.core.Response org.eclipse.persistence.jpa.rs.resources.MetadataResource.getMetadataCatalog(java.lang.String,java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo)
 class org.eclipse.persistence.jpa.rs.resources.MetadataResource
[6/7/16 7:51:24:912 EDT] 00000039 id= io.swagger.jaxrs.utils.ReflectionUtils > isOverriddenMethod Entry 
 public javax.ws.rs.core.Response org.eclipse.persistence.jpa.rs.resources.MetadataResource.getMetadataCatalog(java.lang.String,java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo)
 class org.eclipse.persistence.jpa.rs.resources.common.AbstractResource
[6/7/16 7:51:24:912 EDT] 00000039 id= io.swagger.jaxrs.utils.ReflectionUtils > isOverriddenMethod Entry 
 public javax.ws.rs.core.Response org.eclipse.persistence.jpa.rs.resources.MetadataResource.getMetadataCatalog(java.lang.String,java.lang.String,javax.ws.rs.core.HttpHeaders,javax.ws.rs.core.UriInfo)

I had too broad a dependency in my Maven pom.xml. I switched from eclipselink to org.eclipse.persistence.jpa.

<dependency>
<groupId>org.eclipse.persistence</groupId>
<artifactId>org.eclipse.persistence.jpa</artifactId>
<version>2.6.3</version>
</dependency>

The swagger entries disappeared from my swagger.yaml and it’s subsequent view.   I hope this helps.

Leave a Reply

Your email address will not be published. Required fields are marked *