Comments (6)
Swagger defines one version number per file.
So if I have version 1, version 2, and version 3 of the API - it appears that I need to publish 3 files.
So in the api/swagger/ folder, I am looking to have
- api/swagger/
- 1.0.yaml
- 2.0.yaml
- 3.0.yaml
And I am thinking if node runner can load all the files, or perhaps via a config being passed in.
What do you think?
from swagger-node-runner.
No. I'm not certain of what your looking for. Can you explain what you'd hope it would do?
from swagger-node-runner.
I wonder if the best way to handle this would be through a front-end proxy that can route to the variations of your API based on path - or whatever criteria you choose?
from swagger-node-runner.
@yinso actually i did it with 3 different files and load them all successfully.
i can help you with this if you want
from swagger-node-runner.
@GiladShoham can you share the code regarding this? :)
from swagger-node-runner.
@GiladShoham how did you do?
from swagger-node-runner.
Related Issues (20)
- Controllers should be able to be defined as an object
- mockControllersDirs as config option HOT 1
- Ignore response validation upon specific errors HOT 2
- Known vulberabilites HOT 6
- Upgrade the `swagger-tools` version to `0.10.3` for async controllers HOT 1
- Assertion error on register HOT 6
- Cannot find module swagger_params_parser HOT 2
- madCow
- Multiple response schemas fail HOT 1
- Update README
- Vulnerabilities reported by npm audit HOT 5
- Release with fixes #119 and #121
- Support sway 2.X.X HOT 3
- How to not use default cors or set it to false
- Permission to merge pull requests HOT 2
- is request validation toggle-able? HOT 1
- swagger-node is selecting wrong path for the request HOT 5
- swagger-node-runner 0.7.0 doesn't seem to be calling Global security
- Is this module dead? HOT 2
- override swagger express html 404 error HOT 7
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-node-runner.