Test case to generate a swagger with an external enumeration definition from a JAX-RS endpoint Run mvn test to reproduce the issue. The question related to this error is on StackOverflow.