Comments (8)
Nobody asked for it till now!
Should be fairly straightforward to add support for this.
from swaggerhub-maven-plugin.
👍
We would like to do some openapi validation on incoming requests. We don't want to connect online to swaggerhub in order to retrieve the spec plus all references.
SwaggerParser provides some nice functionality in order to facilitate this: dereference and bundle.
Maybe this plugin could use that and provide an option to have the downloaded file completely dereferenced or bundled into one big file. Otherwise you'd probably have to tweak the $ref uris, I imagine.
from swaggerhub-maven-plugin.
Could you describe your use case @batwad?
from swaggerhub-maven-plugin.
Could you describe your use case @batwad?
This is so I can have an offline copy of the APIs in sync with whatever's in swaggerhub.
I have a build process at the moment which uses the codegen plugin, but it means the code can't be built if swaggerhub is down (which never happens of course) or a dev is working offline. I want to build a separate build that will download the APIs and push them to our on-prem git repo, a poor man's version of your git sync integration if you like.
from swaggerhub-maven-plugin.
Ok, gotcha.
Yeah I think you're right @octmueller, it looks like SwaggerParser/OpenAPIParser is probably the way to go here. Maybe add an optional boolean <resolve>
parameter to the plugin config.
from swaggerhub-maven-plugin.
I was hoping that a relative address would work in a $ref, thereby avoiding the problem @octmueller mentioned. But downloading a resolved version of the API would be even better.
Still, I'd like the ability to download domains so that I can mirror them in our SCM.
from swaggerhub-maven-plugin.
Yes, it would be great to download resolved version of api with models included from domains
from swaggerhub-maven-plugin.
v. 1.0.8 now supports downloading and uploading domains. Use the <definitionType>domain</definitionType>
configuration parameter to indicate that the target file is a domain.
from swaggerhub-maven-plugin.
Related Issues (18)
- Push to SwaggerHub is formatted incorrectly HOT 1
- Add support for yaml upload/download HOT 1
- Add support for on-premise SwaggerHub instances HOT 1
- Update Upload/Download Tests to use JUnit4 runner HOT 2
- Add default lifecycle phases
- Add support for downloading resolved specs HOT 4
- Plugin upload appears to be successful when misconfigured
- Proxy support HOT 2
- cannot download due to ssl handshake
- Not able to Upload HOT 1
- Add support for updating default version HOT 1
- extension with syncDirectory and syncFile goal (and get goal) HOT 1
- Execution config is ignored HOT 2
- Unable to make use of 'swaggerhub-maven-plugin' or 'swagger-maven-plugin' HOT 5
- Can't upload openapi.yaml file to swaggerhub HOT 2
- Add support to upload apis/domains to a specific project
- . HOT 1
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 swaggerhub-maven-plugin.