Giter VIP home page Giter VIP logo

Comments (4)

jeffhiltz avatar jeffhiltz commented on May 14, 2024 1

Fantastic! All I needed was an update. :)

I also really appreciate the advice about the testRunner. And most of all, thank you for the quick response! I'm about to modify a bunch of services and I'm very, very happy to know this before I start. 🙇

from oas-kit.

MikeRalphson avatar MikeRalphson commented on May 14, 2024

Thanks for the report, will take a look at both issues.

from oas-kit.

MikeRalphson avatar MikeRalphson commented on May 14, 2024

Can I check which version you're running?

It looks like that got fixed in commit 72bd25b - which is included in v2.11.13

node swagger2openapi.js test/missing-info/swagger.yaml && echo ok
Error: (Patchable) info object is mandatory
    at fixInfo (/home/mike/nodejs/swagger2openapi/index.js:1129:27)
    at /home/mike/nodejs/swagger2openapi/index.js:1313:9
    at new Promise (<anonymous>)
    at convertObj (/home/mike/nodejs/swagger2openapi/index.js:1198:28)
    at /home/mike/nodejs/swagger2openapi/index.js:1376:13
    at new Promise (<anonymous>)
    at convertStr (/home/mike/nodejs/swagger2openapi/index.js:1362:28)
    at /home/mike/nodejs/swagger2openapi/index.js:1415:17
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)

You might get clearer output from using testRunner -n in your CI process, and this has the benefit that it actually runs the validator on the converted output (swagger2openapi itself does almost nothing when given an input file which is already in OpenAPI 3.0.x format):

node testRunner.js -v -n test/missing-info/swagger.yaml && echo ok
Gathering...
Error: (Patchable) info object is mandatory 

Failures:
Converter failed swagger.yaml

Tests: 0 passing, 1 failing, 0 warnings

In both cases above ok is not echoed, as the exit code is non-zero.

from oas-kit.

MikeRalphson avatar MikeRalphson commented on May 14, 2024

No problem, please let me know if you hit any other issues.

from oas-kit.

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.