Code Monkey home page Code Monkey logo

Comments (4)

WindomZ avatar WindomZ commented on July 27, 2024

Good idea 👍 , I tried to implement this idea in v1.3.0

Welcome feedback.

from swagger-merger.

TheGreatRefrigerator avatar TheGreatRefrigerator commented on July 27, 2024

Hi @WindomZ ,
thank you for such a fast fix, again 👍
Sadly it's not working for me this time.

doesn't matter where i try to reference, i always get this error for the following merge using the newest 1.3.0:

$ node_modules/swagger-merger/bin/swagger-merger.js -i index.yaml -o test.yaml --debug

I tried it on my own file as well as this index.yaml from the examples without the local references (paths, definitions)

SyntaxError: Unexpected token U in JSON at position 271
    at Object.parse (native)
    at mergeJSON (..\node_modules\swagger-merger\lib\merge_json.js:26:15)
    at mergerYAML (..\node_modules\swagger-merger\lib\merger_yaml.js:20:13)
    at merge (..\node_modules\swagger-merger\lib\merger.js:52:14)
    at merger (..\node_modules\swagger-merger\lib\merger.js:34:3)
    at next (native)
    at onFulfilled (..\node_modules\co\index.js:65:19)
    at ..\node_modules\co\index.js:54:5
    at co (..\node_modules\co\index.js:50:10)
    at createPromise (..\node_modules\co\index.js:30:15)

might be something like this
But i didn't understand completely what is happening in lines 26 and 27 of merge_json.js

from swagger-merger.

TheGreatRefrigerator avatar TheGreatRefrigerator commented on July 27, 2024

I tested it today on a fresh new linux installation (other was with windows in gitbash where i often run into some problems).
It worked fine :)

from swagger-merger.

WindomZ avatar WindomZ commented on July 27, 2024

I have found some problems in Windows

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.