Comments (4)
Hey @lsdch, is this an OpenAPI 2.0 spec? Why isn't SomeObjectType
in #/components/schemas
?
from openapi-ts.
Sorry, I messed up the example, schemas
was supposed to be here. Edited the issue to fix this. The actual spec I'm using is OpenAPI 3.1.0
from openapi-ts.
Would you be able to create a reproducible example? I had a look at this yesterday and we have a type with array containing object and null in tests and it generates the expected result, so I wasn't able to reproduce
from openapi-ts.
I just realized the issue was I am not using the latest version of openapi-ts, still on v0.42. Upgrading to v0.46 makes it all work as expected. Sorry, I'm closing this, apologies for wasting your time!
from openapi-ts.
Related Issues (20)
- Wasn't able to send a correctly formatted payload using application/x-www-form-urlencoded HOT 2
- Default export of the module has or is using private name 'ClientConfig'. HOT 2
- Types for the methods conflict when the same operation name is defined in multiple routes HOT 15
- Proper Angular support HOT 2
- External reference not resolved correctly HOT 2
- Why is accept hard coded? Can it be changed to */* until a better solution is created? HOT 5
- How to create my own client? HOT 14
- client-fetch: array of string in body unsupported
- Handle different http status like 200 or 204 HOT 5
- Support microsoft office Content-Type as binary HOT 3
- CancelablePromise type does not work with react suspense HOT 5
- Default content-type of application/json applied to requests even when no body HOT 2
- @hey-api/client-fetch does not really `throw` where it should HOT 3
- Object is possibly undefined this.httpRequest HOT 2
- @hey-api/client-fetch: Error is unknown when using default HOT 3
- @hey-api/client-fetch: TS type RequestResult is not exported
- Option for config filename
- Using the raw operationId with the methodNameGenarator HOT 1
- Transform generation fails if route has multiple success responses HOT 2
- `Spread types may only be created from object types` issue for additionalHeaders in generated `requests.ts` HOT 5
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.