ReaderListeners are not picked up
See original GitHub issueHi!
Good job with the package, it’s real cool 🕶 !😃
Small bug i’ve found while trying to implement ReaderListener
s, please see details below:
Prerequisites:
Have a class in the scanned resources package(s) which implements ReaderListener
without any annotation on it.
Expected behavior: The class is picked up, instantiated, then acted upon accordingly to the documentation.
Actual behavior: The class is not picked up, nor called.
Workaround:
The class is picked up when it’s annotated with@SwaggerDefinition
.
Thanks for making this project, enjoy your day!😃 Reg, -Dan
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Listeners and Readers Generalize Their Experience ... - NCBI
The related probes were selected from common word association responses and dictionary definitions. These words were not used in the item's priming sentence...
Read more >Event listeners not working? 3 key areas to troubleshoot
Are your event listeners not working as you'd expect? Here are 3 key areas to troubleshoot to help you get everything triggering as...
Read more >Audience Awareness - English Composition 2
Knowing your audience—whether readers or listeners—will help you determine what information to include in a document or presentation, as well as how to ......
Read more >We've spent two years studying readers' & listeners' needs of ...
Here's how we collected these needs: Our team at The Atlantic conducts survey and interview-based research with current, prospective, and former subscribers, as ......
Read more >What Does the Bible Say About Reading Listeners?
A Psalm of David. The Lord is my shepherd; I shall not want. He makes me lie down in green pastures. He leads...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I had the same issue with dropwizard and swagger v3. Adding
@OpenAPIDefinition
to my class implementingReaderListener
did the trick.Hi, I am also facing similar issue while working with a sample project downloaded from https://www.javainuse.com/spring/boot_swagger with just one API definition.
Have updated the following dependencies in pom.xml spring-boot-starter-parent:v2.3.4.RELEASE, springfox-swagger2:v2.9.2, springfox-swagger-ui:v2.9.2, swagger-jaxrs:v1.6.2
I have added on class which implements ReaderListener and annotated with @SwaggerDefinition Have implemented the beforeScan and afterScan methods by just putting a sysout. On running the application the sysouts never get printed
I tried with both @SwaggerDefinition and @OpenAPIDefinition but could not get it t work. Have also tried the following but it seems to be not working https://stackoverflow.com/questions/39856511/swagger-readerlistener-is-never-picked-up-during-scanning https://github.com/swagger-api/swagger-core/issues/1912
Please help.