Giter Site home page Giter Site logo

Comments (7)

BobbyLarone avatar BobbyLarone commented on May 21, 2024 2

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.

wing328 avatar wing328 commented on May 21, 2024

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.

wing328 avatar wing328 commented on May 21, 2024

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.

thril avatar thril commented on May 21, 2024

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.

ltomes avatar ltomes commented on May 21, 2024

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.

kay-schecker avatar kay-schecker commented on May 21, 2024

Please also see the new configuration file. It will handle that topic carefully for u.

from openapi-generator-cli.

xazos79 avatar xazos79 commented on May 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.