diff --git a/modules/swagger-jaxrs/src/test/java/io/swagger/resources/SimpleSelfReferencingSubResource.java b/modules/swagger-jaxrs/src/test/java/io/swagger/resources/SimpleSelfReferencingSubResource.java new file mode 100644 index 0000000000..cafb3e11bf --- /dev/null +++ b/modules/swagger-jaxrs/src/test/java/io/swagger/resources/SimpleSelfReferencingSubResource.java @@ -0,0 +1,24 @@ +package io.swagger.resources; + + + +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; + +@Produces({"application/xml"}) +public class SimpleSelfReferencingSubResource { + + @Path("/sub") + public SubResource getSubResource() { + return new SubResource(); + } + + // keep this test resource simple with just a single level of self-reference + public static class SubResource { + @GET + public SubResource getSelf() { + return this; + } + } +} \ No newline at end of file