Comments (4)
Thanks for the issue @cathywise! Sounds like I should be able to easily reproduce and fix. Thanks for trying out the new client! π
from openapi-ts.
Hey @cathywise, I've got a fix for this which I will publish shortly. There's no need to update the fetch client, fixing types worked for me, no more compiler problems (that is, unless I did NOT include the header which is the expected behaviour).
It's a bit of a naΓ―ve fix as it's not tested on multiple content types. If you'll still have problems, please open another issue. I just worry if that happens, it will take longer to resolve, because the types don't support multiple content types well. That's something I need to eventually improve, hopefully a worry for another day.
from openapi-ts.
Pushed another update which uses JSON.stringify()
to convert the value when making the actual request. Please update both the client and @hey-api/openapi-ts
to the latest version and let me know if you run into more problems!
from openapi-ts.
Thanks! The fix is working a treat π
from openapi-ts.
Related Issues (20)
- @hey-api/client-fetch: TS type RequestResult is not exported
- Option for config filename HOT 1
- Using Operation object with the methodNameGenarator HOT 1
- Transform generation fails if route has multiple success responses HOT 8
- `Spread types may only be created from object types` issue for additionalHeaders in generated `requests.ts` HOT 7
- Setting user-agent HOT 5
- Fetch Response Interceptor Does Not Intercept 500s HOT 5
- incorrect type generated when combining oneOf with properties HOT 1
- @hey-api/client-fetch missing CancelablePromise, how do I abort/cancel an in progress call?
- FormData/RequestBody not handled correctly with the standalone clients
- Add this project to OpenAPi Tools HOT 5
- Ability to customize service operation parameter name HOT 2
- Order of imports HOT 2
- OpenAPI parameter name of only an underscore results in missing parameter name in services.gen.ts and malformed type definition
- Add tutorial to docs
- Remote $ref support
- Generate query parameters when service generation is disabled HOT 9
- Support async transformers HOT 7
- Ignore asClass for named clients
- TypeScript error: No overload matches this call. HOT 3
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-ts.