You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npx @manifoldco/swagger-to-ts https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json
This library has been updated to 2.0 with improved generation. If you experience issues you can use the deprecated v1 with `npx @manifoldco/swagger-to-ts@1 …`
🤞 Loading spec from https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json…
The text was updated successfully, but these errors were encountered:
@drwpow Are the docs wrong or do I misunderstand them?
One issue with printing to stdout is the This library has been ... & 🤞 Loading spec ... lines currently go to stdout, which puts them in the output file, e.g.
> swagger-to-ts https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json > types.ts
> cat types.ts
✨ swagger-to-ts 2.0
This library has been updated to 2.0 with improved generation. If you experience issues you can use the deprecated v1 with `npx @manifoldco/swagger-to-ts@1 …`
🤞 Loading spec from https://raw.githubusercontent.com/stripe/openapi/master/openapi/spec3.json…
Should those lines only be printed to stdout if the output flag/alias is given? I can't immediately think of a way to display to the screen and still support pipes. LMK if you have any ideas/suggestions.
@drwpow Are the docs wrong or do I misunderstand them?
Sorry; I was unclear. Yes, the docs are wrong—it doesn’t write to stdout, and I don’t think it ever has.
This isn’t by design, just oversight. I think it may have been a behavior I had planned on implementing but never did. I’m in solid agreement that stdout should be supported, and it should be the default behavior without the -o flag.
Steps to reproduce
What I expect to happen
See TS types printed to the screen as documented
What I observe
No TS types are shown
The text was updated successfully, but these errors were encountered: