File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
modules/swagger-jaxrs/src/main/java/io/swagger/jaxrs/config Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 11package io .swagger .jaxrs .config ;
22
33import io .swagger .annotations .Api ;
4+ import io .swagger .annotations .SwaggerDefinition ;
45import io .swagger .config .FilterFactory ;
56import io .swagger .config .Scanner ;
67import io .swagger .config .ScannerFactory ;
@@ -236,6 +237,7 @@ public Set<Class<?>> classes() {
236237 final Reflections reflections = new Reflections (config );
237238 Set <Class <?>> classes = reflections .getTypesAnnotatedWith (Api .class );
238239 classes .addAll (reflections .getTypesAnnotatedWith (javax .ws .rs .Path .class ));
240+ classes .addAll (reflections .getTypesAnnotatedWith (SwaggerDefinition .class ));
239241
240242 Set <Class <?>> output = new HashSet <Class <?>>();
241243 for (Class <?> cls : classes ) {
You can’t perform that action at this time.
0 commit comments