Code Monkey home page Code Monkey logo

Comments (8)

scaothanhson avatar scaothanhson commented on July 27, 2024 5

Me too. Although I used "-i" option many time, it returned content of first file. Cannot merger many file, only replace.
What does "merger" mean?

from swagger-merger.

ylacaute avatar ylacaute commented on July 27, 2024 2

I just discovered this tools and I read "Merge multiple swagger files into a swagger file" but I don't undertstand how it works. I expected to use the "-i" option many time, otherwise I dont understand the interest of this tool : my generated output is exactly the same as my input.

from swagger-merger.

NikhilNanjappa-zz avatar NikhilNanjappa-zz commented on July 27, 2024 1

If anyone is looking for an actual merge/combine tool, try this - https://www.npmjs.com/package/swagger-combine instead.

I used this sometime back and worked fine for me. If my memory serves right, you might have to create a config file and mention the files to be combined in it before running the combine command etc. There are alternate ways to combine as well which could be mentioned in the docs. Worth a shot!

from swagger-merger.

WindomZ avatar WindomZ commented on July 27, 2024

The design idea is only one in '-i' and one out '-o', overwrite the output file. :)

from swagger-merger.

WindomZ avatar WindomZ commented on July 27, 2024

You have suggested supporting multiple input files. Also welcome PR

from swagger-merger.

MikeChristensen avatar MikeChristensen commented on July 27, 2024

Agreed, it's unclear what this tool actually does. I was trying to create a single YAML file that references a bunch of other YAML files, and then merge them into one giant YAML files with all the APIs in one. I wasn't able to get anything working. What exactly does this tool do?

from swagger-merger.

MikeChristensen avatar MikeChristensen commented on July 27, 2024

Thanks @NikhilNanjappa that looks like exactly what I was looking for!

from swagger-merger.

WindomZ avatar WindomZ commented on July 27, 2024

The design of swagger-merger:
Merge multiple related files from one input file into one output file and overwrite it, not multiple unrelated files.

How to relate? Use $ref or $ref#*

from swagger-merger.

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.