-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for domains #11
Comments
Nobody asked for it till now! |
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. |
👍 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. |
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 |
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. |
Yes, it would be great to download resolved version of api with models included from domains |
v. 1.0.8 now supports downloading and uploading domains. Use the |
I've started using domains in my APIs but this tool cannot upload or download them
The text was updated successfully, but these errors were encountered: