Comments (7)
@PanosCodes Since you've rebuilt the whole Swagger implementation... Do you have any pointer?
Do we need to a config setting to maintain backward compatibility?
from apipie-rails.
I think it might be simple
-
The version part can already be handled by
apipie:static_swagger_json
rake task, you can pass the version you want to output for examplebundle exec rake apipie:static_swagger_json\[2\]
. -
For the namespace part of the problem,
Apipie::Application::to_swagger_json
usesApipie::Generator::Swagger::ResourceDescriptionsCollection#filter
to filter 😅 the resources for output so maybe there is an elegant way to extend that.
It seems like it can be implemented without any breaking changes.
from apipie-rails.
I will investigate it more tomorrow 🙂
But then it feels like it would be easiest to fix by handling it via rake-commands instead of the config?
from apipie-rails.
Correct, I don't think the configuration is the right place for that.
from apipie-rails.
Thanks for the update
from apipie-rails.
@PanosCodes It seems like no matter which version I generate, they all end up in the same file and overwrite each other.
Am I missing some configuration?
from apipie-rails.
Decided to add my namespace to the version and use the ENV["OUT"]
:
OUT=./swagger/v1/namespace_a bundle exec rails apipie:static_swagger_json\[1\.namespace\_a\]
OUT=./swagger/v1/namespace_b bundle exec rails apipie:static_swagger_json\[1\.namespace\_b\]
from apipie-rails.
Related Issues (20)
- Enable Style/HashSyntax Ruby 1.9 HOT 2
- Getting So many Warnings while using apipie with Ruby 2.7.7 HOT 15
- Missing translation `apipie.returns`
- How to specify binary-type params HOT 3
- [v1.0] NoMethodError: undefined method `resource_id' for Apipie:Module HOT 2
- Swagger warnings for optional parameters even when using `property` HOT 2
- Swagger generation mixes up controllers with same name: HOT 4
- Apiepie::ParamErrors Inconsistent interface HOT 9
- Swagger JSON cannot parse Array of Hash in params HOT 4
- How do I specify a custom Description, I get "Another API description" HOT 2
- Discrepancy: `params` Defined as Array of Integer in Apipie appears as Array of Strings in Swagger File HOT 4
- Incorrect Representation of Array of Hashes in Swagger Output HOT 3
- How can I define a param group without duplicating what is defined in ActiveRecord model? HOT 1
- How to display an example for a request in Swagger? HOT 2
- Are multiple base url's possible
- "allow_blank" setting is not displayed in api doc HOT 3
- Array and files swagger HOT 1
- Blank validator error message is wrong
- Blank validator error message is wrong 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 apipie-rails.