Comments (7)
Oh i like that, that could be a nice flag: ArgumentStyle vs ObjectStyle. Something like --useOptions?
from openapi-typescript-codegen.
Yeah,and now I think put all optional parameters to into options is the best way if using --useOptions
.Like **kwargs
in Python。
from openapi-typescript-codegen.
@ferdikoomen It's embarrassing to say that I'm too impatient to wait for the new style.I wrote more code and found that the code could be more flexible and simple if using the new style.
from openapi-typescript-codegen.
no problem, i had a look this weekend and it should be a simple change. I should be able to push some changes later on this week. If you want to help then feel free to create a PR or update some documentation. I will update this thread when the new option is available.
from openapi-typescript-codegen.
I did some updates on README. #128 You can edit it for correctness after you finish the code writing.
from openapi-typescript-codegen.
Added 0.1.17 that supports --useOptions param. I'm still testing this, but feel free to play around with it.
from openapi-typescript-codegen.
@songzhi 0.1.17 has been tested and should have the alternative style fro arguments vs options
from openapi-typescript-codegen.
Related Issues (20)
- Method Names postfixed with Numbers
- Method Names postfixed with Numbers HOT 7
- All properties are nullable, even though they are not defined as nullable in swagger file HOT 3
- Indent "tabs" write empty files HOT 1
- A flag to determine file extensions in import statements HOT 1
- Property name with dashes cause incorrect typescript conversion HOT 2
- Behavior change for relative input path in 0.26.0 HOT 19
- parameter with same name as schema conflicts HOT 11
- Type error: Type alias ‘XXX’ circularly references itself. HOT 14
- getFormData causes issue in submitting files
- Type error: Private identifiers are only available when targeting ECMAScript 2015 and higher. HOT 22
- Relative external references for Angular client doesn't work HOT 1
- OpenAPI.ts `Resolver` typing is annoying, should use a `Maybe` type
- While resolving: [email protected] HOT 1
- Unable to run when redocly is installed HOT 2
- Option to rename `requestBody` HOT 1
- Select/Filter Tags to generate specific Services only HOT 1
- Literal fields are converted to optional any HOT 5
- Adding the option to remove certain or all file headers. HOT 1
- Referenced nullable object types are not generated as possibly null 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-codegen.