openapi-client | Generate ES6 or Typescript service integration code | REST library
kandi X-RAY | openapi-client Summary
kandi X-RAY | openapi-client Summary
Generate ES6 or Typescript service integration code from an OpenAPI 2.0 spec. Also supports optional Redux action creator generation. Tested against JSON services.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of openapi-client
openapi-client Key Features
openapi-client Examples and Code Snippets
Community Discussions
Trending Discussions on openapi-client
QUESTION
I am generating model in JavaScript with -Dmodels
option. The generated code contains require
module loader used in Node, but I am using Vue Js.
So, I have problem when I require these files in Vue Js project. It gives me an error about superagent
- it suppose I will use superagent
which is also autogenerated.
What I want is to generate pure models with ES6 export/import statements. Is it possible with Swagger Codegen or should I use something else?
Currently, I am using openapi-client but there is no support for model generation.
ANSWER
Answered 2019-Apr-11 at 11:56So, like it usually happens - you find your answer after you ask a question :)
I found there is an option --additional-properties
you can provide like:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install openapi-client
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page