Giter VIP home page Giter VIP logo

Comments (6)

yinso avatar yinso commented on August 21, 2024 1

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.

theganyo avatar theganyo commented on August 21, 2024

No. I'm not certain of what your looking for. Can you explain what you'd hope it would do?

from swagger-node-runner.

theganyo avatar theganyo commented on August 21, 2024

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.

GiladShoham avatar GiladShoham commented on August 21, 2024

@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.

vgoloviznin avatar vgoloviznin commented on August 21, 2024

@GiladShoham can you share the code regarding this? :)

from swagger-node-runner.

kazaff avatar kazaff commented on August 21, 2024

@GiladShoham how did you do?

from swagger-node-runner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.