Comments (4)
@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.
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.
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.
@DangoDev Sounds good - will prepare a PR as quickly as I can.
from openapi-typescript.
Related Issues (20)
- Replace vitest-fetch-mock with msw in tests
- Lost type-safety while modify response in the middleware HOT 2
- #1580 causes type issue in `MaybeOptionalInit` HOT 1
- Getting 415s on all PUT, POST HOT 1
- Request for Option to Map `OneOf` to union HOT 1
- `$ref` with other keywords doesn't work HOT 2
- Missing Types for Pattern, MaxLength, MinLength HOT 2
- `defaultPathSerializer` doesn't url-encode its primitive string params
- Export component's and path's types with friendly names
- Self referential types fail to compile
- no matches found:
- Add option to represent non-required properties as required fields in TS with `| undefined`
- Cannot handle dynamic path parameters in the middle of a path
- Query serializer ignores explicit "explode" field value HOT 3
- Type discrimination between `data` and `error` doesn't work HOT 2
- Check/verify functionality for CLI HOT 1
- Enhancing openapi-typescript for Improved Type Safety: Generating Arrays from Enum Definitions HOT 3
- Headers passed in createClient not getting omitted from the headers in Client methods. HOT 1
- Transform only transforms referenced schemas HOT 1
- Hoping to wrap the client for single arg calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openapi-typescript.