Comments (4)
Ah yup! This is a bug. Sorry for the delay. I’ll add a PR & a test to catch this right away. Sorry for the inconvenience!
from openapi-typescript.
@scvnathan could you try the latest version? Using npx
should pull the latest version now, or update to 1.3.1
if running locally.
from openapi-typescript.
I even added a test for catching nested nested arrays so we should be good 😛
environments:
type: "array"
items:
type: "array"
items:
type: "array"
items: { type: "string" }
should generate to:
environments?: string[][][];
from openapi-typescript.
Hey thanks @DangoDev, nice job! I'll test this out again today
from openapi-typescript.
Related Issues (20)
- 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
- Headers lost in fetch request when using BUN HOT 1
- Problem after using ver 7 with generated types for mapping of discriminator HOT 5
- CLI option to validate existing file HOT 5
- bug: request body fields with default values are treated as required HOT 4
- Bug: references to nested properties in schemas generate invalid types
- Error saving output on windows with full file paths instead of relative
- Setup section in npm and the docs are not similar HOT 3
- Types are not enforced with typescript `5.5.3` HOT 7
- Generates invalid types when API paths are nested HOT 3
- Inject option dropped in v7 HOT 1
- Document for conditional authentication failed. HOT 1
- transform function changing objects to not-nullable no longer working in v7 HOT 3
- openapi-fetch: example for extending api client methods HOT 2
- Undefined properties on body object are not flagged if required fields are filled in HOT 1
- Support cookie parameters
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.