Comments (7)
Adding additional properties with : --additional-properties=ngVersion=6.1.7,npmName=restClient didn't work for me.
Adding quotes after the '=' sign and at the end made it work again. So now it looks like this
--additional-properties="ngVersion=6.1.7,npmName=restClient"
from openapi-generator-cli.
Please open an issue in https://github.com/OpenAPITools/openapi-generator instead as your question is about the underlying JAR (openapi-generator-cli.jar) instead of this wrapper.
from openapi-generator-cli.
I can make a pr that adds an example like this to the readme, that will hopefully save other developers a few hours of debugging.
Yes please. We welcome that.
from openapi-generator-cli.
Edit: It appears the whitespace is important for the additional-properties keys.
This works for me:"my-awesome-script-name": "openapi-generator generate -i docs/openapi.yaml -g typescript-angular -o generated-sources/openapi --additional-properties=ngVersion=6.1.7,npmName=restClient,supportsES6=true,npmVersion=6.9.0,withInterfaces=true"
Thanks for this example. I was beginning to get a bit frustrated that I couldn't get it working, but you saved me!
from openapi-generator-cli.
Yeah it took quite a while to find the configuration it wanted. I just put out a pr that updates the base readme so hopefully others discover the correct syntax faster than you and I.
from openapi-generator-cli.
Please also see the new configuration file. It will handle that topic carefully for u.
from openapi-generator-cli.
Adding additional properties with : --additional-properties=ngVersion=6.1.7,npmName=restClient didn't work for me.
Adding quotes after the '=' sign and at the end made it work again. So now it looks like this --additional-properties="ngVersion=6.1.7,npmName=restClient"
Thanks BobbyLarone, this was my problem too. Usage page doesn't mention this requirement.
from openapi-generator-cli.
Related Issues (20)
- [BUG]
- [BUG] - How to generate code for specific tag/path? specifying `--globalProperty=apis=user` is not working.
- [BUG] Unable to query repository becasuse of: "Socket connection timeout" in MacOS HOT 2
- Rename default service generate
- Failed to run the command for setting the version `openapi-generator-cli version-manager set 5.3.0`
- [BUG] HTTP_PROXY Support No Longer Works HOT 6
- [BUG] Axios package <1.6.0 vulnerability HOT 3
- [BUG] useDocker is not passing the user and group when running through the passthrough service HOT 1
- [BUG] version-manager doesn't work since search.maven.org redirects to central.sonatype.com HOT 2
- [BUG] axios version lesser than 1.6.0 has Cross-Site Request Forgery vulnerability HOT 20
- [UPDATE] Release 7.1.0 HOT 4
- [BUG] cant run docker-entrypoint.sh anymore | bash missing :( HOT 2
- [BUG] openapi-generator-cli throw java runtime error in any directory, except installed project HOT 2
- openapi-generator-cli 7.1.0 has errno: -9, code: EBADF [BUG]
- Commercial issues
- [BUG] Version manager sets different version in different folders in Docker
- [BUG] Issue with TypeScript type generation for multiple status codes
- openapi-generator-cli couldn't list installed versions HOT 6
- [BUG] - Generation Error in V.2.10.0 HOT 15
- Cannot read propertie of undefined (reading 'action') HOT 2
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-generator-cli.