Comments (5)
from swagger-maven-plugin.
Thank you for the quick response! I am not using an upstream pom; I have a template that is used for new projects where some automated search and replace goes on in the project templates, so the build plugin would exist for every project. My main interest is having this functionality be removed from the developers' stable of responsibilities; I don't have to train them and they make fewer mistakes. I'm using the generated swagger in a Jenkins pipeline to populate both 3scale (my API gateway) and SwaggerHub and would be happier if a developer was never in a situation where they added a new REST resource in a new package and were then puzzled by why they don't see it in SwaggerHub, etc. We work pretty hard here to keep developers writing code as opposed to worrying about configurations :)
I'll have a look and see if I can figure out how to change to scan all classes that are within the project's code given a syntax like:
edu.upenn.isc.*
there would be no need to scan any library jars, etc.
Thank you, I'll get back to you if I can figure it out. From your perspective, would you prefer an additional config property like true or would simply ending the resourcePackage with an asterisk be enough?
Best,
Charles
from swagger-maven-plugin.
Sorry it ate my examples. From your perspective, would you prefer an additional config property like <recursiveScan>true<recursiveScan> or would simply ending the resourcePackage with an asterisk be enough?
from swagger-maven-plugin.
Ok, maybe I am confused, but the following setting seems to do exactly what I want to do, which is find @Api in every package under edu.upenn.isc.esb.openshiftUtils - does that seem correct?
<configuration>
<useResourcePackagesChildren>true</useResourcePackagesChildren>
<resourcePackages>
<resourcePackage>edu.upenn.isc.esb.openshiftUtils</resourcePackage>
</resourcePackages>
from swagger-maven-plugin.
Yes you are right - we seem to have this feature already. If you enable userResourcePackagesChildren
you should get recursive behaviour - implemented here: https://github.com/openapi-tools/swagger-maven-plugin/blob/master/src/main/java/io/openapitools/swagger/JaxRSScanner.java#L72
Been long since we did that code so I actually did not remember. Let me know if it does not work.
from swagger-maven-plugin.
Related Issues (20)
- End of life? HOT 1
- Generate failed: Cannot invoke "java.util.Map.size()" because "map" is null HOT 5
- Hii,
- Cannot invoke "java.util.Map.size()" because "map" is null HOT 10
- Creating component definition
- Support for Swagger 1.x annotations HOT 1
- Problem at generation of security scheme HOT 4
- New release request: Latest Swagger version 2.1.7
- NullPointerException in 2.1.6 HOT 4
- Supporting API generation from Webflux Functional Endpoint HOT 2
- OpenApi documentation converts byte[] in array of byte[] HOT 3
- Bug related to endpoints with the same path but different consumes (produces) HOT 4
- Add the ability to not include all resources
- Getting a NullPointerException at java.util.TreeMap.putAll (TreeMap:312) HOT 7
- Supporting multiple apiSources
- Problem implementing oauth security scheme HOT 1
- Examples containing date-time strings are not quoted in YAML output
- Running plugin returns the error "Scanner SubTypesScanner was not configured" HOT 7
- Mojo not marked as thread-safe
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swagger-maven-plugin.