Giter VIP home page Giter VIP logo

Comments (4)

drwpow avatar drwpow commented on May 15, 2024 1

@psmyrdek a PR for that would be greatly appreciated!

What about if we just skipped the --url flag altogether, and just accepted it as the main input?

npx @manifoldco/swagger-to-js https://remote.com/specs.json …

And we’d just parse that first param: if it starts with a remote protocol fetch it; otherwise assume it’s a local file. I think that’d keep the API simpler. And it’d save us from having to conditionally require that first param or not.

It’s not exactly outlined, but a goal of this project is to keep dependencies as few as possible for performance. So if we could get away with using Node’s core http/https modules for fetching that’d be ideal.

from openapi-typescript.

RinatGumarov avatar RinatGumarov commented on May 15, 2024

It will be useful for me too. Also I shouldn't write it here, but I also want to enum type to be parsed properly.
Upd: Oh.. I found this issue too=)

from openapi-typescript.

drwpow avatar drwpow commented on May 15, 2024

Also I shouldn't write it here, but I also want to enum type to be parsed properly.

@RinatGumarov You sure shouldn’t write a different issue in an unrelated ticket! 😛 Feel free to open another issue with a reproduction of your issue and the version you’re using please 🙇

from openapi-typescript.

psmyrdek avatar psmyrdek commented on May 15, 2024

@DangoDev Sounds good - will prepare a PR as quickly as I can.

from openapi-typescript.

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.