You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When configuring the resource package in the BeanConfig, for scanning, sub-packages are not scanned anymore.
Furthermore, requesting /swagger.json throws a NPE.
Context:
BeanConfig config = new BeanConfig();
config.setTitle(serviceName);
config.setResourcePackage("a.b.c");
(what I am trying to do is to setup swagger to generate a specs file for all classes annotated with Api.class below package a.b.c and all its sub-packages)
Expected (as per previous versions, for example 1.5.2-M1): class a.b.c.Clazz is found by the scanner
Reality: class a.b.c.Clazz is not found by the scanner
More info:
The class is actually found in BeanConfig.java, line 194 but then filtered out in line 197.
I believe the NPE is another problem (or maybe not even a problem depending on an empty spec being a valid spec or not), but here's the stacktrace: https://gist.github.com/gedl/7904b77055f0aac54620
The text was updated successfully, but these errors were encountered:
When configuring the resource package in the BeanConfig, for scanning, sub-packages are not scanned anymore.
Furthermore, requesting /swagger.json throws a NPE.
Context:
BeanConfig config = new BeanConfig();
config.setTitle(serviceName);
config.setResourcePackage("a.b.c");
(what I am trying to do is to setup swagger to generate a specs file for all classes annotated with Api.class below package a.b.c and all its sub-packages)
Expected (as per previous versions, for example 1.5.2-M1): class a.b.c.Clazz is found by the scanner
Reality: class a.b.c.Clazz is not found by the scanner
More info:
The class is actually found in BeanConfig.java, line 194 but then filtered out in line 197.
I believe the NPE is another problem (or maybe not even a problem depending on an empty spec being a valid spec or not), but here's the stacktrace:
https://gist.github.com/gedl/7904b77055f0aac54620
The text was updated successfully, but these errors were encountered: