Comments (2)
@jamespearson thanks for finding this bug, and posting a helpful example! Just merged a PR to fix this, added a test, and published 1.6.2
to npm which should resolve the issue.
from openapi-typescript.
Works as expected in 1.6.2 :) Thanks for the great work.
from openapi-typescript.
Related Issues (20)
- discriminator mapping ignored when using allOf with oneOf HOT 5
- Custom fetch function from Nuxt fails HOT 7
- Empty body should not result in Content-Type header being set HOT 4
- `null` and `''` (empty string) are serializable to JSON and should therefore be considered a valid body payload HOT 1
- Upgrade to openapi-fetch 0.9.x: Only absolute URLs are supported HOT 1
- Discriminator mapping does not seem to work properly
- Remove nanoid HOT 6
- When calling the client in nodeJS, I get an Array of ts.Node HOT 2
- Request headers are not sent HOT 3
- Upgrading to 0.10.0 results in Failed to execute 'fetch' on 'Window' HOT 11
- Use in Next.js's middleware.ts causes error HOT 3
- Redocly decorators not working HOT 1
- Enum option cannot generate enums if values are not valid property names HOT 1
- Union type for `error` disappears in typescript-fetch v0.10 HOT 6
- Path item components are ignored in `paths` HOT 1
- openapi-typescript 7.0.0 generates an additional `| undefined` to object types HOT 6
- The `duplex` member must be specified for a request with a streaming body HOT 1
- Fixes the middleware in the react query example
- str:str dictionary generates str:str|undefined dictionary in v7.0.0 HOT 3
- Cannot find name 'HeadersInit'. HOT 4
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.